Forum Discussion
chudson002
Oct 24, 2021Brass Contributor
Check-in Check-out
Hello Community, Have created a check-in and check-out app that works beautifully "only" if the app stays open. Scenario: Member checks in for work, i.e. 0800, closes app. End of day, member open...
- Oct 24, 2021
Figured it out!!!!!!!
Button: TWCheck-in
Set(
CurrentCheckedinRecord,
Patch(
CheckInOut,
Defaults(CheckInOut),
{
Employee: User().FullName,
TWin: Now(),
Division: ddDiv.Selected,
Remarks: Remarks1.Text
})); Reset(ddDiv); Reset(Remarks1);
Button: TWCheck-out
UpdateIf(CheckInOut, !IsBlank(TWin), {TWout: Now()})
Button: OTCheck-in
UpdateIf(CheckInOut, !IsBlank(TWin), {OTin: Now()})Button: OTCheck-out
UpdateIf(CheckInOut, !IsBlank(TWin), {OTout: Now()})
chudson002
Oct 24, 2021Brass Contributor
Figured it out!!!!!!!
Button: TWCheck-in
Set(
CurrentCheckedinRecord,
Patch(
CheckInOut,
Defaults(CheckInOut),
{
Employee: User().FullName,
TWin: Now(),
Division: ddDiv.Selected,
Remarks: Remarks1.Text
})); Reset(ddDiv); Reset(Remarks1);
Button: TWCheck-out
UpdateIf(CheckInOut, !IsBlank(TWin), {TWout: Now()})
Button: OTCheck-in
UpdateIf(CheckInOut, !IsBlank(TWin), {OTin: Now()})
Button: OTCheck-out
UpdateIf(CheckInOut, !IsBlank(TWin), {OTout: Now()})