on 11-19-2014 4:43 AM
Hi Frnds,
I have a scenario that, i have to close the entire Browser through Popup Window's Yes or No Button.
I have tried with Exit plug, it does closing the browser window,
But i have LinkTo Action, when i click on this LinkToAction button it Creates one Popup window,
That Popup window contains YES, NO, CANCEL buttons by Default.
Now i want to close the Popup s well as Browser Window, when i click on YES Button from Popup,
I need your Help, or Sample code.
Thanks,
Pradeep
Hi Pradeep,
As suggested by Bhagat, use the exit plug to achieve your requirement.
Creating EXIT plug with parameter CLOSE_WINDOW = X in main window and on Yes button's action, firing the exit plug should be called to close the main window.
For closing window refer the below link:
Closing a web browser through action | Team ABAP
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you know how to close browser window, right ?
Place the functionality used here.. in the action where u are using browser closing code, before the browser closing code. It will close both popup and browser.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pradeep,
Yes you can close the browser window by using window exit plug when user clicks on 'Yes' button.
Step1: within window create a outbound plug EXIT with interface ON
Step 2: within the action event YESONACTION fire the EXIT PLUG of window.
you have to pass the parameter CLOSE_WINDOW with value ABAP_TRUE. Hence controller closes window.
DATA: l_ref_MAIN_WINDOW TYPE REF TO IG_MAIN_WINDOW .
l_ref_MAIN_WINDOW = wd_This->Get_Main_Window_Ctr( ).
l_ref_MAIN_WINDOW->Fire_Exit_Plg(
).
with the button action you have to fire exit plug of window.
You can refer below link
If still not working . Please tell me your NW release and support pack ?
Regards,
Bhagat.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
7 | |
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.