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 / Timers in Gallery inte...
Power Apps
Unanswered

Timers in Gallery interfering with each other

(1) ShareShare
ReportReport
Posted on by 90
I created a random seat drawer app. The app has two galleries on both side as shown below. Each template has a button, with Text sets to seat number, and a timer. 
 
 
The Draw button will select seats from a pool of available seats (total 43 seats) and once a seat is selected (status changes from 0 to 1), the timer associated with the seat will start automatically with duration of 20 secs (for dev purpose only. Should be 3 hrs). Once the timer ends, the OnTimerEnd trigger will change the seat status from 1 to 0. My problem is, the first timer, whatever the seat is, will always start correctly. But when the second seat is selected and its timer starts, it will somehow reset the first seat's timer so now both timers' counts are the same when they should be different...Please see attached video demo. 
 
Here are the related settings: 
Gallery on the right: 
Items: SortByColumns(Filter(Seats, crec5_order <= 22), "crec5_order", SortOrder.Descending)
Timer on the right: 
Text: Text(Time(0, 0, RoundUp(20-Self.Value/1000, 0)), "h:mm:ss")
Duration: 20000
OnTimerStart: false
OnTimerEnd: Patch(Seats, ThisItem, { 'Seat Status': 0, 'Start Time': Blank(), 'End Time': Blank() });
Start: ThisItem.'Seat Status' = 1
Repeat: false
Auto start: false
Auto pause: True
 
Gallery on the left: 
items: SortByColumns(Filter(Seats, crec5_order > 22), "crec5_order", SortOrder.Descending)
Timer on the right: 
--same--
 
Something must have been interfering, but i don't know... If nothing works, i am planning to abandon gallery and manually add 43 button and timer controls to see if it helps...
 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at
    I think 43 timers on the one screen is stretching resources way beyond what they were designed for, however in theory they should work. You are however going to need 43 different Variables as the behaviour you are seeing is expected if you are using the same Variable.
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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