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.

Scripting FIND requests to continue

Featured Replies

Periodically I perform a find and get an error message that says:

"no records match this set of find requests".

[color:red]Is there a way to script an automatic selection of the CONTINUE button when this condition occurs?

Thanks,

Jarvis

There sure is ...

Set Error Capture [ On ]

... then handle the error (or no records found) yourself (immediately after Perform Find), something like:

If [ not Get (FoundCount) ]

Show Custom Dialog [ "No Records Found" ]

... do whatever if no records found

Exit Script or Halt Script (depending upon your needs and whether this is sub-script)

End If

... work with found set

LaRetta :wink2:

You want to turn on Set Error Capture sometime before the error occurs on the Perform Find to suppress the message. It automatically turns off when the script ends but you can turn it off with the same script step as well. Right after, and I mean the very next step after Perform Find since the error is only stored for one step after it occurs, use the If script step to test for the error. You don't have to but most people like to show a custom dialog that no records were found and also Show All Records. The condition you want to test for is "Get(LastError) = 401" or you can test for "Get(FoundCount) = 0". Either test will do the trick but Get(FoundCount) has the advantage of not needing to be tested immediately after Perform Find since it is not testing for the error number that is only held for a single step.

Your find script might like look this:

Set Error Capture [On]

Enter Find Mode [Pause]

Perform Find []

If [Get(LastError) = 401]

Show All Records

Show Custom Dialog ["Error"; "No records found"]

End If

Go to Layout ["MyLayout" (MyTable)]

Find scripts can get a lot more complicated than this so if you want something better, look at a script on my web site called the Ultimate Find. You'll find the most recent version by searching for "DevCon 2005" in the Resources area. My web site is in my signature.

  • Author

Thanks guys, that did the job!

Jarvis

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.