on 08-02-2007 1:39 PM
Hello
How can I close a window after a button event?.The action handler performs severals steps and at the end the window should be closed.
Is there a differnece between a normal window and a popup window ?
Thanks
Carola
explorer does not close...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I implemented ANZY's blog and worked fine for me...
One thing is make sure the Javascript code is under the Log-Off Tab in the SICF node.....and dont forget to hit SAVE when u have put the code in there..
But one problem is that ...does this close the USer Session ??????????
That is fine I exit with a EXIT PLUG and wndow closes...but the user session is stilla ctive...
So What I did was , in the exit plug, I navigate to a BSP application which as a Javascript Code, to close the window and also end User session
<% runtime->keep_context = 0 %>
Hello Anand,
How do I navigate to another page?
Is it possible to navigate to an external url such as www.sap.com?
I don't use BSP application in my project
Thank you for your help
Efrat
> Hello Anand,
> How do I navigate to another page?
> Is it possible to navigate to an external url such as
> www.sap.com?
> I don't use BSP application in my project
> Thank you for your help
> Efrat
Hi Efrat,
You can use the EXIT_PLUG of the WIndow (Interface View Controller) to end the current application . This plug should be defined as a OUTBOUND PLUG of the Window with the Interface Flag marked and Type = Exit.
You can create a parameter , 'URL' (not lv_url or ev_url or anything else, BUT URL)for this plug.
You can call this plug, when u want to end the current application and supply the url of the page u wanna navigate to
This si the coding u will do in the action handler of the view when u want to navigate to a different URL. This action handler can be for a button.
data ref_ifc_view_ctr type ref to IG_<COMPONENET_NAME>.
ref_ifc_view_ctr = wd_this->Get_<COMPONENT_NAME>.
ref_ifc_view_ctr->Fire_Plg_<outbound_plug>( 'http://www.sap.com' ).
For migrating to a BSP application or any other resource in Mime rep, give the full path
ref_ifc_view_ctr->Fire_Plg_<outbound_plug>( '/sap/bc/<bsp or WebDynpro>/sap/<name of _resource>).
<b>There is a Redirect URL on the Error Pages Tab of the Service in SICF. I guess you can specify a fixed URL here too. Never used it...but u can try</b>
Thanks
Anand
Thanks. That's it.
Carola
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Anzy
I followed your nice step by step procedure with plugs and SICF, but the explorer window does not close but a white, empty explorer window stays there.
sicf: logg of :
<html><body onload="setTimeout('top.close(),100);"></body></html>
What do you thiank could be wrong ?
Kind regards.
Carola
Hi Carola,
You can refer this blog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/6707. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
Thanks
Anzy
Message was edited by:
Mohammed Anzy S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Carola,
Just call my_popup_pointer->close( ).
Basically, the difference between a popup window and a normal window is that the normal window has no parent and doesn't feature all those additional fancy things that are required for popup windows, like a button row on the bottom or an optional icon to the left, etc.
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Carola,
You are already inside of the window. Closing it means exiting the current application. This can be achieved by calling an exit-plug. If you would like to close the browser window as well, there is the possibility to add a special log-off page to the sicf node of the application that contains a window.close( ) javascript call. Please note, that IE still displays its own popup asking the user if he/she really wants to close the window. This cannot be prevented to my knowledge.
Best regards,
Thomas
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.