Schedule Timer to run right after click a buton

Schedule Timer to run right after click a buton

  

hi there,

I want to run timer right after click a button, but i do not know what to choose in the schedule of the timer:

regards,

indra

Hi,

You will not be able to do this through schedule.

Use the Wake action instead. So, in your logic, in the end of the action you call when you click the button, you call the action Wake<yout timer>.

Cheers,
Eduardo Jauch

EDIT:

https://success.outsystems.com/Documentation/10/Developing_an_Application/Use_Timers/Create_and_Run_Timers

If you didn't the online training, you should. This is seem there.

Hi Eduardo,

I have tried this in the button action:

, but the action of the timer does not come up:



regards,

indra

Solution

Hello Indra,

I'll ask if you did the online training?
This is really important.

For example, you would learn that the action called by the timer will run in a separate session.
This mean that the action will not be connected to the execution of the application by any user. You will not be able to send "feedback" messages to screen. Nor will you be able to use any user session variable.

You use server actions run by timers to execute code that do not need to have session context.

Cheers,
Eduardo Jauch

Solution