on 07-07-2009 6:21 AM
Hi Colleagues,
Here in our requirement we have two Webdynpro applications
From the rist webdynpro application, i am calling second webdynpro application using
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(urlToTargetApp);
window.show();
And the second application contains a Close button
Could any one pplease let me know how can i close this second window (in my second webdynpro application)
Manythanks & Regards
Swetha
Hi Swetha,
Create a context attribute named "WindowInstance" in component controller and change the type to com.sap.tc.webdynpro.services.session.api.IWDWindow. Map it to both your views.
Now store the instance of window in this context attribute.
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(urlToTargetApp);
wdContext.currentContextElement().setWindowInstance(window);
When you click on the close button in the view2 then execute
IWDWindow windowInstance = wdContext.currentContextElement().getWindowInstance();
windowInstance.destroyInstance();
Regards,
Jaya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this code,
IWDWindow window=wdContext.currentContextElement().getWindowInstance();
window.destroy();
or
window.close();
or
window.destroyInstance();
Regards,
sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swetha
please check this link.This link is similar to your req.
Regards
Ruturaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.