- Daniel Vivier
- PowerBuilder
- Saturday, 2 January 2021 07:28 PM UTC
I saw a previous thread that was related to this but nothing there worked for me.
I have a DDDW on a DW, that has some rows with italicized display values, and some non-italic, based on an undisplayed field in the DDDW.
I would like the DW to immediately change the field that contains the DDDW to italic if a row is selected from it that is italicized, and vice versa.
I have code that basically works, except you have to tab out or otherwise move out of the field before that happens. I'm even posting the call to the function that evaluates the value on the current row of the DDDW and sets the field to be italic or not, but that doesn't help.
I have confirmed that ItemChanged is firing as soon as I make a selection from the DDDW.
A secondary problem is I'm trying to call that same function after the initial retrieve of the data in the DW, but in that case, the GetRow() call on the retrieved DataWindowChild always returns 1, not the row associated with the value that is being displayed. (That GetRow call does work perfectly when the function is called from the ItemChanged event.)
Any bright ideas on either problem? Thank you.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.