cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

How can I add individual timer controls in my gallery?

ScreenshotScreenshot

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.

 

 
 
1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

4 REPLIES 4
Super User III
Super User III

Hi @Adi1607 ,
You need another field in the gallery to identify the timer as the one to start - see below

TimerStart.gif

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.

View solution in original post

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

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (93,532)