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

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (26,412)