cancel
Showing results for 
Search instead for 
Did you mean: 

Closing application

david_fryda2
Participant
0 Kudos

Hi everyone,

When I click on X to close the application, I get an anoying little window that can block all the Internet Explorer.

Is there something to do in order to close properly a WD application ?

Thanks.

David

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello..

Its been a long time.. U r back i guess

One .. Try CE. Here windows have their own close buttons.

Two .. What are doin in the app ? can u give some more details ??

Regards

Bharathwaj

david_fryda2
Participant
0 Kudos

Hi,

It is nice to come back in the portal world -:(

The senario is the following :

1) Page A open an page B using relative navigation.

2) There is a button exit in page B that should close B (itself).

I tried the exit plug, the javascript widow close and nothing seems to work.

3) In addition when closing I need to free resources from portal : my sys admin says that my WD applications do not free resources from portal.

Thanks for the help.

Regards.

Edited by: David Fryda on Dec 27, 2007 11:19 AM

former_member197348
Active Contributor
0 Kudos

Hi David,

Create an OutboundPlug for B's InterfaceView (not exit plug).

Add B's InterfaceView in view's required controller property.

onAction<exitbutton>() write this:

wdThis.wdGet<viewB>InterfaceViewController().wdFirePlug<back>();

3) if you are talking about JCo resources add this code before exit :

wdContext.current<BAPI>Element().modelObject().modelInstance().disconnectIfAlive();

Hope this solves your problem

regards,

Siva

former_member751941
Active Contributor
0 Kudos

Hi David,

Check this link.

Regards,

Mithu

david_fryda2
Participant
0 Kudos

Hi,

What I am trying to do is to create a button that closes the web dynpro application : it is an exit button.

I am not talking about a window.

Thanks.

former_member485701
Active Participant
0 Kudos

Hi,

For closing a webdynpro application:-

You need to do following application

(1) In your window Create an Exit plug say "Exit", with boolean parameter with name "closeWindow".

(2) Now when you want to close your application. Fire this plug in following manner.

wdThis.wdGet<Window_Name>Controller().wdFirePlugExit(true);

Now It will open a small popup window to close your application, click on yes.

But this popup will not be visible on portal.

Regards,

Praveen

Former Member
0 Kudos

Hi

u can insert the following code in order to close the appl.

IWDWindow win=wdContext.currentconextelement().getWininstance();

win.destroy();

u can copy the above code in the view to which u want to close.

1)In the above wininstance is the valueattribute

2)u can create this attr in component controller rootcontext of type(IWDWindow)

3) Then u can map this for both views

regards

Hazrath.G