cancel
Showing results for 
Search instead for 
Did you mean: 

Closing Webdynpro application browser from default Window inbound plug?

Former Member
0 Kudos

Dear all,

We have developed a webdynpro application with few parameters.

When the Webdynpro application URL is called from another application with parameter values,

from these parameter values we need to update custom tables and need to close the application automatically from the default inbound plug of the window.

How can i achieve this?

Thanks,
vamshi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

the processing application can have an exit plug. Just fire the plug when you are finished.

Former Member
0 Kudos

Thanks for reply.

I have created exit plug for window and called the fire method, but still the window is not closing.

Abhinav_Sharma
Contributor
0 Kudos

Hi Vamshi,

You can refer the steps mentioned in the document - .

Hope it will help you.

Regards

Abhinav

Former Member
0 Kudos

Hi Abhinav,

Thanks for Reply. 

That means exit plug will take to browser window  with 'close' button,

But is there any way the browser closes automatically without pressing close button.

Thanks,
Vamshi

Abhinav_Sharma
Contributor
0 Kudos

Hi Vamshi,

You can add the following code in the close.html. It will automatically close the browser window after 3 seconds

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0  Transitional//EN">

<HTML>

<HEAD> 

<TITLE> New Document </TITLE>

</HEAD> 

<script language=javascript>

</script> 

<BODY  onLoad="setTimeout(self.close(),3000);" > 

<strong> Closing browser</strong>

</BODY>

</HTML>

This will only work on IE browser.

Thanks!

Abhinav

former_member184578
Active Contributor
0 Kudos

Hi,

You can check this document:

In your second component, in handle method of window itself if you want to update the data base and close the application, Why don't you do the same in your first component itself?

Regards,

Kiran

Answers (1)

Answers (1)

Former Member
0 Kudos

You need to extract the business logic from this WDA and put it into class/FM and after that call it from your WDA.

Former Member
0 Kudos

Hi Roman,

Thanks for the reply.

By calling the function module or method , can we prevent the Webdynpro application to generate the browser?

Thanks,

Vamshi