on 06-14-2006 4:47 PM
Hi there,
Is there anyway I can close the main application window(not popup) programatically.
I tried calling the exit plug in the interface view controller, but doesnt seem to close the window automatically.
I am having 2 components, one calling the other..
Any help will be greatly appreciated.
Many Thanks
lm
Hi LM,
Check especialy Nibu`s suggestion.
<i>
1) In your Interface view, create an exit plug with a parameter Url of type string.
2) Add your Interface view controller to your current view's required controller. (in properties tab of your view)
3) After opening the new External window fire the outbound plug as :
wdThis.wdGet<your interface view controller>().wdFirePlug<your exit plug's name>("javascript:void(window.close())");
</i>
It should work for you.
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am referring to this previous thread which I had started, where I wanted to close the main application window.
All works fine using the method suggested(javascript window.close), but when the page is called from the portal using web dynpro iview, the page is not closed. It gives a blank screen, instead of closing it. This iview is being opened in a new window.
Any suggestions?
Thanks,
LM
L.M.,
Note, that later WD versions (I guess you are using not NW04s, and something lower then SP15) forbids such URL.
Better navigate via exit plug to some static HTML page with single line:
<html><body onload="window.close()">Application terminated</body></html>
Also there is no workaround for IE behavior as well as for other browsers. All of them show warning about closing "main" browser window.
VS
Hi VS, Maksim,
Sorry, I had to open this thread again. This is about closing the main application window.
The solution suggested by VS works , if there is only one component. But if this is being called by another component, and if the interface view of this comp is being called by the outbound plug of a view in another component, it errors, saying cannot exit embedded view.
Is there any way round this?
Many Thanks in advance,
LM
Hi VS,
Regarding your answer, I cannot force a log off, because he is still required to be logged in to the portal. If I use that method, it will log him off from the portal as well. I just want to close the current Application window(which is opened from the portal in a new window), even if there are nested embedded components used...
Thanks again, any suggestions are welcome,
cheers
LM
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.