cancel
Showing results for 
Search instead for 
Did you mean: 

onAction non-activity reaches 15min

Former Member
0 Kudos

Hi

I need to initiate a save action when the period of in-activity reaches 15min (ie. before the page timeout).

Is there anyway I can do this in WD java?

thanks

Anton Kruse

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186016
Active Contributor
0 Kudos

Write a method in controller that starts running when application is instantiated.

The method will trigger the save action in 15 mins.

In all the views whenever some activity happens call this method to be reset so that it agains starts the timer of 15 mins.

If the method is not reset from any view in 15 mins the save action will be triggered.

[ I haven't tried this, just an idea . There might be complications ]

Regards,

Ashwani Kr Sharma

dhawal_joshi
Employee
Employee
0 Kudos

Hi,

Another possibility is that you could use a UI element called as Timed trigger which generates an event after some time. You could capture the event and save the required data .

regards

Dhawal

Former Member
0 Kudos

thanks Dhawal

How would I re-initialise the timed trigger, like say from a button click?

thanks

Former Member
0 Kudos

I achieved what i set out to do by toggling the Enabled to true/false.

thanks