cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HansHeintz
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
mdevaney
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (50,007)