Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Help on Timer: A way to resume last recorded time when a form is edited

(0) ShareShare
ReportReport
Posted on by 28

I am creating a productivity tracker. It has a Gallery and Form Edit containers. 

 

Currently, when I click 'New' Icon to create a new record, it opens up the Form and allows entry or selection of choices. It also starts the Timer OnSelect. 

 

Once done, the user is expected to close the form and trigger SubmitForm OnSelect of save Icon. 

 

OnSuccess, it Stops the Timer and saves all of the data on SP as a new record. This also updates Gallery to show the new record.

 

User also has the option to select from Gallery and edit the data and save again. This overrides SP record and update it based on new data.

 

This is where I have a problem, I want that whenever an item from the Gallery is edited, I want the time to continue counting from the last count of Timer that was saved in SP. 

 

I used the Timer instead Time Difference using Now() because I will also encounter the issue where it counts all the time between the first Start Time and the new End Time. 

 

Anyone have any suggestion how I can make this work? 

 

Here on this Image, I added a new record Test9 which lasted 30 secs based on Timer. 

ZERAREZ_2-1713930905364.png

ZERAREZ_3-1713930928710.png

Then edited the Gallery item

ZERAREZ_4-1713930971968.png

However, upon saving the edited item, instead of continuing the Timer, it starts from 0 and then saves a new time on SP

ZERAREZ_5-1713931045094.png

 

 

 

Categories:
  • VishalJhaveri Profile Picture
    VishalJhaveri 1,162 on at
    Re: Help on Timer: A way to resume last recorded time when a form is edited

    That is a complex question. 
    You need to manage multiple collections and when the Start button is pressed, the data is to be saved in the SharePoint List.
    Then when the data there must be a timer control or functionality which then calculates how much time it has happened.  Then it gets calculated and when you press Stop button, again you need to provide the Save Functionality in the app. The Stop button then calculates how much the time has lapsed since the Start button.

  • ZERAREZ Profile Picture
    ZERAREZ 28 on at
    Re: Help on Timer: A way to resume last recorded time when a form is edited

    Thanks Vishal,

     

    Can you provide some guide on how to do this? Sorry only new to Power Apps. 

  • VishalJhaveri Profile Picture
    VishalJhaveri 1,162 on at
    Re: Help on Timer: A way to resume last recorded time when a form is edited

    You need to save and create a play pause button functionality which stores the data in the Power Apps SharePoint list and add a timer functionality to it.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard