cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HansHeintz
Post Patron
Post Patron

Why does timer only restart after reset when it is stopped before

Hi,

I was again taking far too long to solve a simple issue.
I tried to reset a timer and have it running again

Timer (named TimerSave) is set to both repeat and autostart true
Timer Start is set to context variable StartSaveTimer

Reset(TimerSave)
;;UpdateContext({StartSaveTimer:true})

This will not work, the timer is reset but never starts again.

UpdateContext({StartSaveTimer:false})
;;Reset(TimerSave)
;;UpdateContext({StartSaveTimer:true})

This will work.
Why is this? You may say well you solved your problem so why keep whining, but perhaps there is some logic to this all I might learn from and solve issues like this quicker without searching this forum.

1 REPLY 1
mdevaney
Super User
Super User

@HansHeintz 

I believe the action of moving from false to true is what actually causes the the timer to Start.  The same behaviour exists for the Reset property of the Timer.

 

If you wanted the Timer to repeat you would simply set the Repeat property to

true

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,489)