cancel
Showing results for 
Search instead for 
Did you mean: 

Which method is triggered when browser is closed by user in FPM GAF

former_member224404
Active Participant
0 Kudos

Hi Team,

I have developed a FPM application using GAF. My question is to find out which method is triggered when the user closes the browser by the close button on top right corner. Actually I would like to write some code for clean up activities of my application if user does so.

Please help on this.

Thanks,

Mainak

Accepted Solutions (0)

Answers (1)

Answers (1)

Aliaksandr
Active Participant
0 Kudos

Hi Mainak,

Try to use method WDDOEXIT in application controller component.

Kind regards, Aliaksandr.

former_member224404
Active Participant
0 Kudos

Dear Aliaksandr,

I tried checking both the component controller and view WDDOEXIT method of my web dynpro component but found this is not getting called when user closes the browser window.

Thanks,

Mainak

Former Member
0 Kudos

You can also try in PROCESS_EVENT method of your component controller,

check for event as 'FPM_CLOSE'

former_member224404
Active Participant
0 Kudos

I tried to put external breakpoint in process event method of component controller, but the execution doesn't stop at my breakpoint when I am closing the browser window.

Aliaksandr
Active Participant
0 Kudos

Hi Mainak,

It's very strange. I have created small GAF application in test purposes and when I close IE window break point is triggered in WDDOEXIT method. Please double check your's application.

Maybe it makes sense to reproduce the same scenario in your's system.

Kind regards, Aliaksandr.

Former Member
0 Kudos

I agree, it should stop.

Try puting breakpoint in WDDOINIT and then test your application.

If it does not stop in this method when application gets launched then might be you will have to check if its the correct component.