Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can anyone tell why this doesn't work?

Featured Replies

  • Newbies

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 [  ]

The field DateRange should not have quotes but rather 6/15/2021...6/30/2021

  • Author
  • Newbies

Yes when I use it as the text variable DateRange it doesn't have quotes. Just 6/15/2021...6/30/2021. 

It is only when I use a literal, ie "6/15/2021...6/30/2021" (with quotes) that it does work. 

 

Without providing a way to reproduce the problem, the best you can hope for is a lucky guess.

I don't like to guess - but my first suspect would be the tblTime::DateRange field. You called it "a variable field". There is no such thing. And you didn't explain how this field gets populated. I suspect that the field does not contain what you think it does. Or perhaps it's not a global field - in which case it does not contain anything when you are in Find mode.

 

  • Author
  • Newbies

THANK YOU!! It was the global field thing. I was not aware of that. It works now. 

23 minutes ago, willbilson said:

It was the global field thing.

As I said: a lucky guess.

 

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.