Hi,
I have some user objects ( inherited from u_tabpg ) that are tab pages that fire code in the constructor on the datawindow ( contained on the user object ) . However , if something fails I would like to close the parent window. I am doing the following:
w_master lw1
this.of_GetParentWindow(lw_lw1)
lw_lw1.TriggerEvent("pfc_close")
However , I'm not sure if this is the correct way or if there is a better way. Also , I'm not sure if it's ok to post the event ( I needed to post it because the window isn't open yet when the constructor fires , thus triggerevent fails ) .
Thanks In Advance
Jason
I have some user objects ( inherited from u_tabpg ) that are tab pages that fire code in the constructor on the datawindow ( contained on the user object ) . However , if something fails I would like to close the parent window. I am doing the following:
w_master lw1
this.of_GetParentWindow(lw_lw1)
lw_lw1.TriggerEvent("pfc_close")
However , I'm not sure if this is the correct way or if there is a better way. Also , I'm not sure if it's ok to post the event ( I needed to post it because the window isn't open yet when the constructor fires , thus triggerevent fails ) .
Thanks In Advance
Jason