cancel
Showing results for 
Search instead for 
Did you mean: 

WDDOEXIT not getting called as close my application

former_member40425
Contributor
0 Kudos

Hi Experts,

I have written some logic in method WDDOEXIT of my application. If I run my application directly using URL(means through NWDS) and close my application or Refresh my application, WDDOEXIT gets call on the same moment. But if I run my application through enterprise portal then WDDOEXIT of my application gets called after 1000 sec. I guess its happening so because I have set expiration time as 1000. If I reduce it to 100 then WDDOEXIT is getting called after 100 seconds only and I if I don't set this parameter at all then it takes random time. I want that WDDOEXIT of my application should be called as I close application or refresh my application.

Please suggest.

Regards,

Rohit

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member214651
Active Contributor
0 Kudos

Hi,

Remove the expiration property from the application. it will be executed every time the component goes out of scope.

Regards,

Poojith MV

former_member40425
Contributor
0 Kudos

Hi Poojith,

Thanks for quick response.

I have removed expiration time parameter. but still it takes time

Regards,

Rohit

former_member214651
Active Contributor
0 Kudos

Hi,

How much time is it taking to execute the code written in wdDoExit()? Is the code getting executed or not?

Regards,

Poojith MV

former_member40425
Contributor
0 Kudos

No, Poojith.

the Problem is that code is not getting executed. code is not taking time. Problem is that wdDoExit is not getting called for some time.

Is there any other option where I write code which can be executed as I close my application.

Regards,

Rohit

former_member214651
Active Contributor
0 Kudos

Hi,

wdDoExit() is the last method to be called in the life cycle. I don't see any other method which gets executed when the program leaves the application.

Regards,

Poojith MV