Return Value from Selection-List

Rabbit

Member
Hi all,

I have define a SELECTION-LIST widget and use the ADD-LAST method to create the item list as follow :

wk-fund:add-last(description, company-code).

The description is the label and the company-code is the value, but I found when I check the SCREEN-VALUE, it contains the label rather than the value. The Progress document told me it should return the value rather than label, is I make any mistake when using the ADD-LAST?
 

mra

Junior???? Member
If you have a selection-list with item-pairs, screen-value will only give you the value displayed.

Try putting "assign {&self-name}" in the selection-list's value-changed trigger, and then use the variable directly.


Regards
Mike
 

cmorgan

New Member
The symptoms you are describing could be the result of defining your selection list with LIST-ITEMS instead of LIST-ITEM-PAIRS.

Also, be aware that there is a bug with LIST-ITEM-PAIRS, where you cannot use the same description twice for different values.

HTH
 
Top