I have a simple payroll app I am (trying) building. When I try to narrow an employee's time into a date range I can't get it to work.
There is already a variable field called "DateRange" - it currently is "6/15/2021...6/30/2021"
Script:
Go to Layout [ “TimeSheet” (tblTime) ]
Button 2: “Cancel”, Commit: “No” ]
Enter Find Mode [ Pause:Off ]
Set Field [ tblTime::dtDate; tblTime::DateRange ]
Perform Find [ ]
So it doesn't perform the Find - won't proceed, saying "The provided find criteria are not valid" etc
Apparently I can only populate in find mode with a fixed string criteria, not with any variable. If I change the code to
Set Field [ tblTime::dtDate; "6/15/2021...6/30/2021"]
It works.
Sorry the code is
Go to Layout [ “TimeSheet” (tblTime) ]
Enter Find Mode [ Pause:Off ]
Set Field [ tblTime::dtDate; tblTime::DateRange ]
Perform Find [ ]