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
Thank you to point me in that limitation ! However the code works perfectly if I trigger the event 'ue_help" instead of posting it, but I guess I should avoid it anyway...
Pierre