Hello friends,
Please help me solving this problem.
For an OnSelect of a button, I would like to have two actions upon selecting the button.
The first action,
Upon selecting the button, it will clock in; formulas I used for the clock in action as below:
If(ThisItem.display = Self.Text && ThisItem.enabled,
Patch(TimeTracker, Defaults(TimeTracker),
{Title: glbUser,
ActivityType: ThisItem.display,
ActivityDateTime: Text(Now(), "[$-en-US]yyyymmddhhmm"), ActivityDate:Now()
}
),
UpdateContext({lclCorrection: LookUp(TimeTracker, Title=glbUser && ActivityType=ThisItem.display && ActivityDate=ThisItem.value)})
)
And the section action
Upon selecting the button, it will save the location; formulas I used for saving the location. it works when I used it on a separate screen and button.
SaveLocation.Run(FirstName.Text,Location.Longitude,Location.Latitude,Now())
****** both of the formulas work fine on separate screens. Please help me to work them on the same button. Thanks for your support.
Regards
Nadim