Hi, I'm having some problems with the timer control and not sure what I'm doing wrong.
I have one app with two screens:
Screen1 has a Timer element and a button doing the following:
Set(gblLock,true);
Set(gblDuration,10000);
Navigate(Screen2)
Timer Control has the following properties:
Start: gblLock
OnTimerEnd: Set(gblLock,false);
Duration: gblDuration
Screen2 has 2 labels, one displaying Timer1.value and the other displaying the value of gblLock.
What I want to achieve is, when I click the button in Screen1, start the timer counting to 10, be redirected to Screen2 and see the value of the timer in real time and when the count arrives to 10, see how the variable gblLock change from true to false.
However, when I am redirected to Screen 2, I see Timer1.value = 50 and gblLock = false immediately. I can see for a ms how it changes to true and quickly to false, but it is not counting the 10 sec expected (and I make sure I've put 10sec=10000)
If seems for some reason the timer stop working when navigating to other screens?
Any ideas why this can happened?
Many thanks
Solved! Go to Solution.
A thought...Make sure that you have turned the "Auto pause" off for the timer control. Otherwise it will stop and end when the screen is changed.
I hope this is helpful for you.
A thought...Make sure that you have turned the "Auto pause" off for the timer control. Otherwise it will stop and end when the screen is changed.
I hope this is helpful for you.
@RandyHayes Many Thanks! I didn't check that out. That was the issue, and now it is solved. Thanks!
User | Count |
---|---|
124 | |
87 | |
86 | |
75 | |
69 |
User | Count |
---|---|
214 | |
181 | |
139 | |
96 | |
83 |