PowerBuilder – Getting the Display Value from a Drop Down DataWindow

Posted on Thursday, March 18th, 2021 at 4:51 pm in

This is very basic functionality but easily forgotten. Say you have a datawindow built from the ‘part’ table and a column for partType is a DDDW. You want the description of the partType code (which is displayed in the row showing the parts). To do this you use the evaluate method with the describe method on the datawindow.

string ls_desc
ls_desc = dw_parts.describe("evaluate('lookupdisplay(partTypeID)'," + string(ll_row))

Where ‘ll_row’ is the row number in dw_parts datawindow from which you want the description.

You might also be interested in

Add your comment

Leave a Reply

Top