Populating a Combo-Box with a DB Field

Errornix

New Member
Hey all,

I have a combo-box that I need populated with the values of a certain field. Writing the query to get the data isn't an issue at all. I just don't know how to get the results into my combo-box. Can anyone tell me how to achieve this? Thanks.


I'm using Progress 9.1c btw.
 

FOR EACH Customer NO-LOCK :
x-ComboBox:ADD-LAST(Customer.custcode).
END.
x-ComboBox:SCREEN-VALUE = x-ComboBox:ENTRY(1).

Try the above in any of the initialization trigger.

Regards
Philip P Oommen
 
Top