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.

Why doesn't this work?

Featured Replies

I want to exit a script if a search produces no records'

I tried this:

Go to Layout ["Client Data" (Client Data)]

Perform Find (Restore)

If [ Get (Foundcount) = 0 ]

Exit Script

End If

What am I doing wrong?

Hi John,  You need to add the criteria you want to find to your script:

Go to Layout ["Client Data" (Client Data)]

Enter in find mode

Set field

Perform find

If [ Get (Foundcount) = 0 ]

 

 

Much success

John, when you say "it doesn't work" what do you mean? Gilbert's idea is a variation that makes your script easier to debug, but wouldn't necessarily change the result. (PS if you use this form, it's optimal to go to Find mode before changing layouts.)

One thing you might be missing is a "Set Error Capture [On]" step before the Perform Find. That way you won't get a FileMaker error dialog, and the script should exit as expected.

But the user might be confused if you leave them on a layout with zero records, so you may want to handle that before you exit.

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.