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...