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.

Modify Find Request Dialog

Featured Replies

Hello all,

I am implementing a button script that will show a set of records that match being marked as "Supervisor". I can get the script to work, however, when there are no records that are marked "Supervisor", a dialog pops up saying that No records match this request.

This is all well and good, if you want to show that. However, I was wondering if there was something I could edit in my find script that would disable that dialog from displaying on the chance that there do exist zero records marked Supervisor?

Set Error Capture [On] either at the beginning of your script or before performing the find.

... and immediately after the Perform Find step, add the steps:

If ( Status ( CurrentFoundCount ) = 0 )

And don't forget to

Set Error Capture [Off]

after you've finished.

Otherwise you'll lose every error.

Paul, doesn't that reset at the end of every script?

It's a developer preference whether you leave it on or not. I prefer to activate it at the start of a script and leave it on for the rest, unless trapping for an unknown error or performing a particularly sensitive export.

Paul is advocating setting it off directly after a find has been performed and any errors trapped. But it depends what your script does afterward whether it has much effect. I prefer users never see one of FileMaker's error dialogs. God only knows what they would do with it to screw up a scripted process.

This is definitely a bottle of port and a warm fire discussion.

Yes, I too hate the thought of users seeing one of FMP's sometimes weird error messages BUT I'd rather that than find out three weeks later that the data is totally screwed because a user didn't know something bad had happened.

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.