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.

No Records Found script needed

Featured Replies

Frustrated newbie needs verbatim script for no records found for online database.

On my home computer, if no records match the search terms, I get a generic alert from FileMaker that no records were found.

On the online database, nothing happens. I know you cannot use a custom message; I just need something to tell users the search turned up nothing.

I have asked this before, elsewhere, but did not get answers that worked for me.

This is used through IWP?

Create a layout to display the "no records found" message.

Try this script:

Set Error capture [ On ]

Perform Find []

Set Variable [ $error ; Get( LastError) ]

Set Error capture [ Off ]

If [ $error = 0 ]

#records were found

Else

#no records found

Go to Layout [ No records found ]

End If

  • Author

Thanks for trying to help Vaughn!

This is a hosted database (by one of your advertisers)

I created the error layout (called NoRecords)

I don't know what " " means in your verbatim script suggestion. I can do the first two steps but when I try to set the variable using your exact language, FileMaker tells me it expects an operator so I get no further . . .

Are script variables available in FMP 8.0? I thought they were introduced in FMP 8.5. If so, my apologies for offering a solution that won't work in your version.

By "" I meant "other script steps" - this is not a complete solution, it only offers a suggestion to solve the displaying of the error problem.

To work around the lack of script variables, create a global field to store the error code produced by the Perform Find step.

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.