cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KickingApps
Level 8

Two timers - pause a timer with another timer

I have two timers, one (Timer1) is set to 2400 and the other is set to (Timer2) 600.  I want to 'pause' Timer1 when Timer2 stops.  This works - however, Timer1 runs a bit longer before the variable kicks in and 'pauses' the timer.

Timers.JPG

3 REPLIES 3

Re: Two timers - pause a timer with another timer

Hm, which actions you use? I have following setup and...it works for me (sorry to say it but that's true Smiley Tongue)

 

 

image.png

Left timer config

image.png

Right timer config

image.png

Highlighted
Community Support Team
Community Support Team

Re: Two timers - pause a timer with another timer

Hi @KickingApps,

Could you please share a bit more about your scenario?

How do you pause the Timer1 based on the Timer 2 within your app? Could you please share a bit more about your formula?

I have made a test on my side, please take a try with the following workaround:4.JPG

 

6.JPG

Set the Duration property of the Timer2 to following:

60000

Set the OnSelect property of the Timer2 to following:

Set(IsPause, !IsPause)

Set the AutoStart property of the Timer2 to following:

true

Set the Duration property of the Timer1 to following:

60000 

Set the AutoPause property of the Timer1 to following:

If(IsPause, true, false)

Set the Start property of the Timer1 to following:

If(!IsPause,true, false)

The GIF screenshot as below:Test1.gif

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
KickingApps
Level 8

Re: Two timers - pause a timer with another timer

@v-xida-msft  Thank you - I will try this tonight.  I have a next and back button, when I select next I start both timers.  When Timer2 ends (set to 600), the variable is changed to false for Timer1 so Timer1 will pause.  The key is that I need it to stop immediately @ 600ms.  But it is running past that for a second or two.  I'll mark as solution once I modify with the solution you put forth if it resolves the issue.

Thanks again!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 337 members 5,355 guests
Please welcome our newest community members: