cancel
Showing results for 
Search instead for 
Did you mean: 

Close portal window ( popup ) through an button event within the wd-app

shwetars
Product and Topic Expert
Product and Topic Expert
0 Kudos
196

Hello Experts,

the scenario is as follows:

i click on a link within the enterprise portal environment and it opens a wd application within a popup( portal window ). This application has a CANCEL button. when a user clicks on this the portal window should close. How can this be achieved ?

I tried firing the outbound plug of type exit of the wd app main window, but it just blanks out the screen and doesn't close the window it self.

Regards,

Shweta

View Entire Topic
mohammed_anzys
Contributor
0 Kudos

Yeah it doesn't work in the normal course.But there are some work around like creating an html script page in the SICF transaction which contains the following code.

<html

<head>

<script language="JavaScript">

function closewindows()

{

window.close();

}

</script>

</head>

<body onload="closewindows()">

</body>

</html>

.

Regrads

A

mohammed_anzys
Contributor
0 Kudos

Hi Swetha,

Check the test program in the WD component, wdr_test_window_suite .

/Anzy

shwetars
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Anzy,

I have already tried what is done in the example, in the portal environment this doesn't work, just the screen blanks out where as the window still remains.

Regards,

Shweta

former_member188831
Contributor
0 Kudos

Anzy,

i have also done the same thing which is given in 'wdr_test_window_suite'.

but it is not working just clearing the screen but window is not getting close as it is working in 'wdr_test_window_suite'.

pls let me know what to do

Thanks,

Mahesh

former_member188831
Contributor
0 Kudos

Hi Shweta,

as i discussed with you to update the script code

<html><script> function closeWindow( ){ top.close( ); } </script><body><form> The application was logged off successfully. <br><input type="button" value="close window" onclick="closeWindow( );" /></ form></body></html>

in sicf transaction for your component.

it will work (close the window).

dont forget to give me points

all the best...

Rgds,

Mahesh.Gattu

mohammed_anzys
Contributor
0 Kudos

Hi mahesh,

The process is documented in the following weblog and it is working for me.

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

...

Anzy