Hello everyone,
how can I stop and reset a timer if I want to do this from another page?
For example:
I'm starting the timer with a button that is on the same page. I have a cancel button on the same page that navigates me to another page to verify the action with "do you really want to cancel the timer?" and the "yes" button there is the actual timer stop and reset.
This is the code i am using to start the timer with the button on the same page:
UpdateContext({varTimerActive:true})
& UpdateContext({varTimerReset:false})
This is the "yes" button code for canceling the timer on the other page and to navigate back to the actual page where the timer is:
Navigate(zeit_erfassen_screen;ScreenTransition.Fade)
& UpdateContext({varTimerActive:false})
& UpdateContext({varTimerActive:true})
If I use the same code on the same page the timer stops as it should. But when I put the code for the timer stop/reset on the other page the timer does not stop.