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" (newbie)

Featured Replies

Stupid question, but it escapes me. I have a FileMaker 7 database on line through instant web publishing. It is searchable by the general public but I have been unable to successfully create a script saying no records match the search terms. This has to be drop-dead easy and I am embarrassed to ask but am compelled to. Just get me started. Thanks.

Use the Set Error Capture [on] script step to stop FMP from issuing alerts, the trap the process yourself.

Set Error Capture [on]

Perform Find []

If [ Get( LastError ) ≠ 0 ]

#no records match found set or so other error

Else

#some records found

End If

  • Author

Thanks Vaughan - the lines beginning with the # sign confuse me - are those verbatim?

Edited by Guest

No, they are comments. You would set a Custom Dialog or a field that would display the message.

hth

** Sorry Vaughn, didn't see you were online, I saw 10:10 PM and thought it was from last night. B)

Edited by Guest

  • Author

Set Error Capture [on]

Perform find []

If [( Get(LastError)= 0]

Show custom dialog ["no records";"Sorry Qwippo does not . . . . "]

Else

Show custom dialog ["records";"Qwippo has found . . . "]

End if

The above is exactly what I have for a script that is triggered by clicking on a formatted button in an online (instant web publishing) database - the search works fine, but if I type in a search term that I know cannot be matched, I do not get the "Sorry, Qwippo does not have . . . ." message. What am I doing wrong?

NOTE: The Get LastError is not "=" but the "not equal" symbol - which I could not find on my keyboard and the Show Custom Dialog lines are indented

The Show Custom Dialog script step is NOT web compatible. That's why it's not working.

To assit Vaughan in responding, let's answer this:

Perform find []

It indicates that you have no Find Request to restore. Did you mean this or was it an accident?

Vaughan! Dang you're fast! Missed the Custom Dialog error also. But Perform Find[] is naked!!

Edited by Guest

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.