You will firstly need to get a reference to the datawindow child. Here is example code for doing that from PB help (I've modified the names of the variables slightly, to more closely following PB naming standards).
dw_1 is the main datawindow, and 'emp_state' is the name of the column in the datawindow object that the dddw is attached to.
Once you have a reference to the dddw (ldwc_state_child), then you should be able to specify a SetFilter("your filter string" and Filter(), to filter the displayed values in the dddw.
The problem was not filtering the dddw it was loosing the display value after the filter was applied. To fix this I used a computed column with the same data type as the display value. I then filtered this dddw and never lost the display value. Once the user changes the value, I got the data value and set it in the appropriate column.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.