Forum Discussion

chudson002's avatar
chudson002
Brass Contributor
Oct 24, 2021
Solved

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...
  • chudson002's avatar
    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()})

     

     

Resources