cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper V
Helper V

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
Super User III
Super User III

@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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (5,433)