Hello,
I'm building a time recording app consisting of:
- Start button btnStart
- End button btnEnd
- Project dropdown drpSelectProject
- Notes txtNotes
Currently its updating a SharePoint List using:
btnStart
Set (varNewItem, Patch (TimeLog, Defaults (TimeLog),{Title: User().Email, Project: drpSelectProject.Selected, WhenStarted:Now(), SessionActive:true}));
btnEnd
Set (varNewItem, Patch (TimeLog, LookUp (TimeLog, varNewItem.ID=ID),{WhenFinished:Now(), NumberOfMinutesUsed:DateDiff (varNewItem.WhenStarted,Now(), TimeUnit.Minutes), SessionActive: false}));
How do I configure the above patches to include the text input component please and what is best practice of when/how to delete any text entered? I was thinking either after selecting the End button or when closing the form.
Thanks