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.

Is it possible to skip dialog in a script when a Find doesn't find any records ?

Featured Replies

Is it possible to skip dialog in a script when a Find doesn't find any records ?

(resulting in an empty "found set" but not interrupting the script, Instant Web Publishing compatibility required)

Thank you.

Edited by Guest

Someone might correct me on this but could you use the Error Capture and Get (LastError)

If [Get (LastError) = 401 ]

Do this instead....

End If

  • Author

The problem is not that the script stops ???

- in FMP : I get a message box asking me if I want to continue event if there are no found record.

(anyway I only really care about what happens in Instant Web Publishing)

- in IWP, it just doesn't want to perform a Find that find no record, and it keep asking that I modify the find again and again. (I want to be able to perform a find that finds nothing)

Turn set error capture on. If you want to do something different if no records are found, do what grumbachr suggests (place it immediately after your perform find[] step). If no records are found, then Get(LastError) returns 401 when set error capture is on.

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.