Hi all,
I have designed a PowerApps where the user s location is tracked every one minute once the button is clicked using Timer Control automatically (With Timer Duration is 60000(1 minute interval) .My question is I need to stop the button click after 2 hours of tracking automatically?? Is there any way to pause the button after 2 hours of tracking from the time when the button is clicked?
I have a Timer
With Start as True
Repeat as True
On Timer End - Select(Button)
Duration -60000
Can anyone please help me with it??
@jatcube ..Sure..Thank you once again...
@Nisha_Innola glad to hear it worked. Please don’t forget to mark your post answered to help others find the solution easier.
@jatcube ....You re Brilliant...It worked perfectly...Thank you soo much for your Time and Reply...Really this was a big help for me...Thank you once again.....Now the App works perfectly..
@Nisha_Innola I just did a test and it works for me. please double check that the value of the variable in the repeat property of timer1 says true when your timer1 runs. You can go to View - Variables.
If still no luck, let me know how you are setting the variable to true and the other properties you set on timer1 and timer2.
@jatcube ...I have worked as you said. Changed varResetTimer to true in OnTimerStart Property of Timer1 ..Still the issue resides. The timer1 just tracked only once and stopped it s function. Can you suggest me a solution for this Please?
@Nisha_Innola have you set the value of varResetTimer to true? maybe on Timer1 OnTimerStart property? a variable will be blank unless defined. not sure why it doesn't throw an error in Timer1, but I think this is the issue. Let me know.
If you found this response useful, give it a thumbs up and don’t forget to mark your post answered to help others find the solution easier.
Hi @jatcube ..
Thank you for your reply...Your solution worked. But when Timer1 s Repeat mode is changed to varResetTimer, the previous operation of tracking the user s location every 1 minute with Timer 1 is not working. Is there any solution apart form this for this problem??I want the Timer 1 s repeat mode to be true to track every 1 minute...Could you please help me with this?
I have a Timer
With Start as True
Repeat as True
On Timer End - Select(Button)
Duration -60000
@Nisha_Innola there are a few ways you can achieve what you're after, but one option could be setting your Timer1's Repeat property to a variable, e.g. varResetTimer and then having another Timer2 set to run for your desired time after your Timer1 is started and set Timer2's OnTimerEnd property to Set(varResetTimer, false).
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2