I am building an app for our technicians to record details and time spent repairing equipment.
This is my first attempt using Power Apps but with hours of googling and YouTube, I think I have got most of it sorted out.
There is one function that I am not too sure of the best way to handle.
In order to record the time spent repairing the item, they would like a simple stopwatch function.
The difficult part (for me) is that they will not always repair the item in one go (they are likely to spend time diagnosing the problem, then order parts in before spending more time completing the repair)
I have suggested a simple timer, a separate 'Repair Time' field and a button that adds the timer/stopwatch result to the repair time.
I have added a timer and a start and stop button to the app.
Start button OnSelect = UpdateContext({TimerGo: true})
Stop button OnSelect = UpdateContext({TimerGo: false})
Timer Start = TimerGo
The app is based on a SharePoint List and there is a number column called Repair Time. This is a datacard field on the editscreen where the timer is located.
Is it possible to add a button (called 'Add Time') that will add the timer value to the Repair Time field (this may already contain a number so it must add and not replace).
- We only wish to record the repair time in minutes, we are not interested in hours/seconds.
- The value should also be able to be overwritten manually (for example; they start the timer and half way through repairing the item, wander off to get a coffee and come back to find the timer still running. When they stop the timer, they may wish to just add 20 minutes instead of 30 minutes to the Repair Time).
Or is there a better way that you can think of?
I have come across the DateDiff function but I'm not sure if that is relevant here?
Thank you