Hello:
I am working on a powerbuilder application where a complete set of code values are being retrieved from a child datawindow into a field on a datawindow when the window is opened. When the user clicks on the field, the list is supposed to be filtered according to criteria that exists on teh main window. However, the existing value in the field on the window may not be in the filtered list. As a result, when the list is filtered, a number corresponding to the code value number of the existing field text appears in place of the text on the field.
The intent of retrieving all code values when the window is opened is to ensure that values that do not appear in the filtered list will still have the text appear.
This is the code in the window constructor. It retrieves all code values:
dw_1.GetChild('e_typ_cde_000', ldw_child)
ldw_child.SetTransObject(SQLCA)
ldw_child.InsertRow(0)
ll_rowcount = ldw_child.Retrieve(1,0)
This is the code in the clicked event of the main datawindow:
IF Isnull(ld_dcsn_dckt_sb_typ_cde) THEN ld_dcsn_dckt_sb_typ_cde = 0
dw_1.GetChild('e_typ_cde_000', ldw_child)
ldw_child.SetTransObject(SQLCA)
ldw_child.InsertRow(0)
ll_rowcount = ldw_child.Retrieve(2,ld_dcsn_dckt_sb_typ_cde)
The different parameters in ldw_child.retrieve specify whether all values are to be returned, or the filtered list.
How can I ensure that an existing text value on the window will remain visible even when the list is filtered?
I have a screenshot available - unable to attach to this message although it is 103 kb jpeg
Thanks
JM