on 07-31-2009 1:47 PM
Hi All,
I am calling a pop-up window on th emain window and on Action 'OK' on the Pop-up window I want to close the main window.
Please let me know how can I achieve the same.
Thanks
Deb
I have an application where I do this. I create an exit output plug in the my main window. From the popup view, you can access the parent window and trigger this exit plug:
data lo_w_main type ref to ig_w_main .
lo_w_main = wd_this->get_w_main_ctr( ).
lo_w_main->fire_exitapp_plg(
url = lv_exit_url ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you want to close the entire browser? If so use the parameter CLOSE_WINDOW instead. You can read about exit plugs here:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/frameset.htm
Like many generated objects within Web Dynpro, the classes and interfaces are based upon the name you gave the objects they represent. I named my main window W_MAIN. Therefore the interface to access it is IG_W_MAIN. You need to adjust your logic to account for whatever you named your Window: IG_<your window name>.
You do have to add a component usage for the main window into the view of your popup.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.