cancel
Showing results for 
Search instead for 
Did you mean: 

Portal window closing code!!

Former Member
0 Kudos

Hi,

Can anybody send me the code for closing the portal window.

rgds,

Vishal

Accepted Solutions (1)

Accepted Solutions (1)

vikas_saxena3
Participant
0 Kudos

hi, find the code below.

function closeWindow()

{

var currWindow = window.top;

currWindow.opener = window.top;

currWindow.close();

}

Now open InterfaceViews-><ViewName>InterfaceView

Create an Exit outboundplug with parameter Url(use the same name in the scenario) of type String. Save all metadata.

Inside the closeAction, written following code

String url=WDURLGenerator.getWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"Close.html");

wdThis.wdGet<ViewName>InterfaceViewController().wdFirePlugCloseWindow(url);

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Check whether it helps you

Regards

Abhijith YS

Former Member
0 Kudos

chk it

/people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications