cancel
Showing results for 
Search instead for 
Did you mean: 

How to close portal page by Web Dynpro App

Former Member
0 Kudos

Hi There,

I would like to close a portal page by clicking a button of a Web Dynpro App which is inside an iView on that page.

Is this possible or not?

Bertil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks for the quick answers, but to be more specific ...

I (only) want to close the internet explorer window.

Regards

Bertil

Former Member
0 Kudos

Bertil,

First, it is very bad decision to make decisions instead of user. Just redirect him to logoff page and let close window himself.

In WebDynpro you may use <b>Exit plug</b> on interface view with parameter <b>Url</b> (notice the case) of type string.

Then you may previously fire this plug with JavaScript url: javascript:void(window.top.close())

In recent versions of WD this will not work. So you have to redirect user via exit plug to some static html page, that contains in header <script>window.top.close();</script>

VS

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Valery,

Great hint, it solved the problem!

Bertil

Former Member
0 Kudos

Hi,

Create a Link To Url and

give reference = /portal_logoff

Regards

AD

Former Member
0 Kudos

Hi Bertil,

U can close the appln by giving ur close action implementation inside ur OnAction() LinkToURL of the web dynpro appln.

Regards,

Rathna.

Former Member
0 Kudos

Bertil,

Do you mean navigate complete browser window to another page? If so, then use LinkToUrl UI control and set target=_top.

VS