on 02-20-2008 10:38 AM
Hi,
I created link to action ui element in table column. When i click on that it will display new pop up window .Which is actully a window with iframe . This ifram containing other application.
Now when i close this window the view close but windows reamains as it is pls provide solution for it.
Regards,
Gurprit Bhatia
Edited by: GURPRIT BHATIA on Feb 21, 2008 7:12 AM
Hi Gurprit,
Use window.destroyInstance() for closing the window. Apart from that make sure that while creating the instance , u take that window instance in ur context. While destroying also, u need to use the same instance.
regards
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sumit,
I am not using window instance my code for creating window is like this.....
IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("Iframe");
IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createWindow(windowInfo, true);
window.setWindowPosition(WDWindowPos.CENTER);
window.setWindowSize(300,250);
window.open();
wdContext.currentContextElement().setWindow(window);
Regards,
Gurprit Bhatia
Hi Gurprit ,
I was telling the same thing.U r setting the window instance to the context using "wdContext.currentContextElement().setWindow(window);" . I hope ur context is mapped to ur view (the view which u r using in ur Iframe window).
There u can access the same window instance
IWDWindow win = wdContext.currentContextElement().getWindow();
win.destroyInstance(); //for closing the window.
regards
Sumit
Hi,
It seems that you are working with NW04
void destroyInstance() is part of NW04s
Regards
Ayyapparaj
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.