- Pierre Couvreur
- PowerServer 2020 or older (Obsolete)
- Friday, 1 March 2019 10:36 AM UTC
Hi !
Sorry to have at least one issue per day in this period...
I create a user object called uo_dw inherited from datawindow.
Inside uo_dw, I declare a dwobject instance variable : dwobject idwo_currentItem
I also create a user event called ue_help().
In uo_dw's itemfocusChanged event, I store the dwo argument in the instance variable idwo_currentItem : idwo_currentItem = dwo
In uo_dw's doubleclicked event, I post the ue_help user event : this.event post ue_help()
In ue_help(), I display the current item's type :
IF isValid(idwo_currentitem) THEN
messagebox("ancestor ue_help", "type : " + string(idwo_currentitem.type))
ELSE
messagebox("","not valid")
END IF
It works perfectly in PB classic mode, but not in WEB mode where the variable idwo_currentItem is not valid anymore. However, it also works perfectly in WEB mode as soon as I trigger ue_help instead of posting it.
Work around may exists but it could potentially be a big amount of work to adapt a big app.
Double-clic in PB classic mode :
Double-clic in WEB mode :
Attached zip file contains source file for uo_dw and a window that implements it.
Thank you all !
PIerre
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.