web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Pause/stop active (or ...
Power Apps
Answered

Pause/stop active (or all) timers in my dynamic gallery

(0) ShareShare
ReportReport
Posted on by 54

Hi, I have built (with help from this Community) an app for time tracking. I can add how many timers I want, and when I click on one timer, the other timer that was active is paused/stopped.

I would want a button which pauses/stops all timers (ie the active one, as the others are already paused/stopped). For example when going to lunch, I do not want the timers to run. I know it is easy just to click on the active timer and it pauses, but it would be nice to have a specific button for it.

I have a collection (timeTrack) for to handle the timers, and then a collection (TheCollection) for the gallery. I guess I need to work with the collection for the timers, but I really have no idea how to proceed. Nothing I have tried has worked. I have added some pictures of some of the code I have on my timer, do not know if any of those can give any idea how to solve this.

Anyone who have any suggestions on how to pause the active timer?

Anna_H_0-1677768842243.png

Anna_H_1-1677768937175.png

Anna_H_2-1677768963184.png

Anna_H_3-1677768981086.png

Kind regards,

Anna

 

 

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on at

    Hi @Anna_H ,

     

    You could try:
    1\Set the button's OnSelelct property to:

    Set(StopTimmer,!StopTimmer)

    2\Set the Timmer's Start property to:

    StopTimmer && timerRunning=ThisItem.LineNbr

     

    Best Regards,

    Bof

  • Verified answer
    Anna_H Profile Picture
    54 on at

    Thank you @v-bofeng-msft , actually I figured it out last night when I woke up. I just used Set(timerRunning, 0).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard