Skip 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.

Need to find out why this simple script won't work

Featured Replies

Happy New Year, everybody!

Please refer to the attached .pdf for the script.

The hang-up is the highlighted script instruction under Get(LastError);) for some strange reason, the Set Field command won't change the text in the Record::Incident_Tab_Message text field to "No Records Found." I pulled highlighted line of code out and just made a quickie script button out of it and it works fine that way, so I suspect it has something to do with the Perform Find request, but I don't know.

I bet the answer will be sooooo simple I'll slap my forehead silly. TIA for your help!

File_Error.pdf

  • Newbies

Hy,

when no records are found, "setField()" only will work with global stored fields. Try to switch this field to global stored or select one record on which you can set the field.

Alternatively, use a custom dialog.

Well, one thing that I notice (although your TO naming convention doesn't allow me to see how your tables are related) is that you are finding in the "Latches" TO, and Setting in the "Record" TO. Perhaps you have a context issue?

  • Author

Hy,

when no records are found, "setField()" only will work with global stored fields. Try to switch this field to global stored or select one record on which you can set the field.

Abend, Martin:

Thank you--that did the trick.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.