on 11-25-2007 7:05 AM
Hi
I have created one internal window at desing time and inside the internal window i am having a view in which i had desingned a pdf view.
At run time i am calling the this internal window and datas are displayed and everthing is fine in displaying the datas.
The problem is don't know how to close that internal window and there is no close toolbar.
Please can anyone help me to solve this issue.....
Thanks in advance.......
Regards
Chandran s
Hi,
If you have created the internal (modal) window using "<i>IWDWindowManager.createModalWindow()</i>" method, then follow these steps:
//Create the window
IWDWindow winRef = wdComponentAPI.getWindowManager.createModalWindow(windowInfo);
//"winRef" is important here. It is the handle of the modal window that has been created. Save it in the context.
Now you can have a button on your view, say, "Close". The action handler of this button will close the window.
//Get the IWDWindow reference that was saved to the context at the time of creating the window
IWDWindow winHandle = wdContext.getCurrentContextElement().getWinRef();
winHandle.destroyInstance();
Also go through the javadoc for <a href="http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/services/session/api/IWDWindow.html">IWDWindow</a> and <a href="http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/services/session/api/IWDWindowManager.html">IWDWindowManager</a>.
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
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.