Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • WarrenBelz Profile Picture
    146,524 Most Valuable Professional on at
    Timers in Gallery interfering with each other
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard