Screenshot
I am developing an app for time study. I have all the tasks in an gallery. I want the timer to start and stop for the individual item. Currently, every the timer starts for every item in the gallery.
Solved! Go to Solution.
Hi @Adi1607
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
Please click Accept as solution 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 Thumbs Up.
Hi @Adi1607 ,
You need another field in the gallery to identify the timer as the one to start - see below
In this case, I have a Booleen (yes/no) field TimerRun in the gallery data with the Default of the checkbox set to this (so your Start button would need to update a value in the item). The Start button (which you can do the same on yours) would Patch to this field
Patch(
YourGalleryDataListName,
ThisItem,
{RunTimer:true}
);
Refresh(YourGalleryDataListName)
and then
Set(vTimer,false);
Set(vTimer,true)
The Start on the Timer Control is
vTimer && ThisItem.TimerRun=true
Reset your data field OnTimerEnd
Patch(
YourGalleryDataListName,
ThisItem,
{RunTimer:false}
);
Please click Accept as solution 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 Thumbs Up.
Hi @Adi1607
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
Please click Accept as solution 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 Thumbs Up.
How did you created TimerRun in gallery? I am getting error when I try to put ThisItem.TImerRun=True
@ajoshi ,
That is a mistype on the top reference. It should be RunTimer as per the other code
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
265 | |
252 | |
86 | |
37 | |
33 |
User | Count |
---|---|
342 | |
264 | |
129 | |
68 | |
46 |