cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver II
Resolver II

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

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

@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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

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