cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Internal window

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (0)