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.

annoying alert from find

Featured Replies

High all,

is it possible to suppress that annoying dialog box which appears every time a search didn

if you mean you don't want a message to appear staing no items found..

you need to in your script - input the script step:

set error capture (on) - i usually place this at the top of my scripts.

Then after the FIND step in your script put in an 'If' statement and then in the 'if' select Status Functions (should look like this)B)

If {status(Current error) = 401}

Halt script ( or what ever you want it to do if no find result occurs).

End if

or you could also input...

If {status(Current found count) = 0}

Halt Script

End if

(should work the same - i prefer the first option).

Hope this helps,

ricardo

You need to use Filemaker's inbuilt error codes. BUT - be sure you've covered all the errors that could arise when you do this. For your case, the script would look like:

Set error Capture [On]

Allow User Abort [Off]

Go To Layout [ If you have a separate layout for your find]

Perform Script [Your find routine]

If[status(CurrentError) = 401]

. Show Message["There are no records which match your search criteria"] [OK]

. Show All Records

End If

Perform Script [ Your sort routine for the records]

Go To Layout [Original Layout]

Some other things you might want to consider are where you want to go depending on how many records are found. For example, replacing the last step of the above script with this...

If(Status(CurrentFoundCount) > 1

. Go To Layout [List View]

Else

. Go To Layout [Form View]

End If

would take you to the most logical way to view the results

  • Author

Thank You very much for incredible fast and complete answers!!!

Do You never sleep Russ? 5:33 AM!

Rather than using "If[status(CurrentError) = 401]...", I recommend:

If[status(CurrentFoundCount) = 0]...

The thing about error numbers is that you have to know what they all are, whereas showing the actual situation is much easier to interpret. Besides, these error numbers aren't always reliable.

Sleep - whats that ?

Actually, I think the times are all given based on some clock in a remote shack straddling a fault line in California. It certainly wasn't 0533 in Australia when I wrote it - more like 2233.

"The thing about error numbers is that you have to know what they all are,..."

Or where to find them if you don't want to fill your head with too many things which can be easily referenced from the application in which you are working. FileMaker Help / Status(currenterror)

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.