Jump 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 Dialog Box

Featured Replies

Is there a way to exectue a script when a one of the

"cancel" "continue" "Modify Find"

buttons are pressed. I know how to continue the script when the continue button has been pressed. (ie If[ Get(Last Error) =400] etc).

Essentially I would like all my buttons to work the same way the continue works, or just being able to disable them all.

If anyone has any insight it would be appreciated.

Thx

Jeff England

There sure is, Jeff! It involves the Get ( LastMessageChoice ) function.

Per FM's online help, Get ( LastMessageChoice ) returns a number corresponding to the button clicked in an alert message that is displayed by the Show Custom Dialog script step:

• 1 for the first button (by default, labeled OK)

• 2 for the second button (by default, labeled Cancel)

• 3 for the third button

You'll work this into your script by inserting an If statement just below your Show Custom Dialog step. With this new structure in place, you can decide where any error-trapping should be included.

Let us know how it works out!

  • Author

I am aware that the steps you just told me work great for custom dialog boxes, but i am having no luck implementing it for this solution.

Because this dialog box is a filemaker dialog box, not a custom dialog box. I tried disabling modify find in custom menus, but no such luck.

Please tell me if im being too vague.

Thx

Jeff England

You should try disabling the dialog altogether, since you don't really want to allow the choices anyway. Insert the Set Error Capture [ On ] step before the Perform Find [], then add branching to deal with the no records found error.

  • Author

Thx Soo much,

runs beautifully now, such an easy solution, to a problem driving me nuts, im reading up on the script step now to make sure I don't make this same mistake in the future.

Thx

Jeff England

Oh! My bad! I get it now. :doah:

Okay, two things ...

• Do you have a Set Error Capture [On] step in your script ... somewhere preceding your "Find" routine? This will suppress FM's internal dialog in this instance.

• It then becomes advisable to "roll your own" dialog box to apprise users of results. After your Get ( LastError ) trap, consider inserting a Show Custom Dialog step where you can tailor-fit any message (or series of buttons) you deem necessary. If "nothing" follows, the script can leave users with a set of zero records found. You may already have a default step or routine in place, something like Show All Records, but it should be mentioned here for all readers.

I hope I'm on track this time!

Edit ... but I'm clearly late to post. Glad Ender's response worked for you.

Edited by Guest
to acknowledge Ender's post

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

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.