Skip to Content
0
Former Member
Jan 09, 2008 at 05:30 AM

Closing the NonModel External Window in Webdynpro

24 Views

Hi,

I have a Webdynpro Application, in which i used to call the webdynpro application in a Separate external window by using the below code.

String depObjectName =wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();

WDDeployableObjectPart depObjectpart=WDDeployableObject.getDeployableObjectPart(depObjectName,"TestApp",WDDeployableObjectPartType.APPLICATION);

String url = URLGenerator.getApplicationURL(depObjectpart) ;

* *

*// Code to Popup the View in External window by calling the Application *

window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Update View");

* *

* *

wdContext.currentContextElement().setCtx_WindowInstance(window);

* *

window.setWindowSize(625, 225);

* *

window.setWindowPosition(50, 75);

*window.setTitle("Update View"); *

window.show();

This opens the Separate external window and after editing some fields, I need to Update the DB and close the window.

When i try to use the code,

window.destroyInstance();

The window is not getting closed. I have used the window instance as the static IWDWindow window, still i am not able to close the window.

Anyone Please let me know how to close the External Non Model Window.

Thanks and Regards,

Sekar