Hello,
I am developing an app that will have two buttons - Check In and Check Out. The data is connected with my sharepoint list called EmployeeOffice.
I used the following formulas:
Check in button:
Set(CurrentCheckedInRecord; Patch(EmployeeOffice; Defaults(EmployeeOffice);{Title:"Office";StaffFullName:User().FullName;StaffEmail:User().Email;CheckIn:Now()}));; Navigate(CheckIn;ScreenTransition.Fade)
Check Out button:
Refresh(EmployeeOffice);; If(!IsBlank(CurrentCheckedInRecord); Patch(EmployeeOffice;CurrentCheckedInRecord;{CheckOut:Now()}));; Navigate(CheckOut;ScreenTransition.Fade)
I would like to add the following functionalities:
- you cannot check in again if you didnt check out (the message that you are already checked in should appear)
- you cannot check out if you didnt check in (the message that your have not checked in should appear)
I use FullName of my employees and Email address. Employee will check in and out everyday.
Thank you in advance!
Best regards,
Bartek