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.

Reporting "No Related Records"

Featured Replies

I'm trying to do a Find script where one of the first steps is to Go to Related Record. If there is a related record, then the script runs fine, but if there is not a related record, then Filemaker seems to ignore the script step entirely and the rest of my script gets hosed. I'm try to get Filemaker to report that there are no related records so that I can take the script down a different path (ie. Show Custom Dialog Box stating "no records found). I've tried using Get ( FoundCount ) and Get ( RequestCount ), but these don't seem to do it. Can anyone suggest a way to have Filemaker report no related records exist? I sure would appreciate any advice anyone might offer. Thanks

The Count(field) function will do here. Just use the KEY FIELD from the relationship as your "field" parameter.

  • Author

Thank you very much for this information, IdealData! I really appreciate you taking the time to answer my question. Have a great day... :)

It will work "Ideal", but not ideally:

http://www.nabble.com/Re%3A-Testing-For-The-Existence-Of-Related-Records-p4654755.html

--sd

I second that. Please don't use Count to test for related records. I presented on this at DevCon back in 1999. Use IsEmpty or IsValid.

Weird... but i was about to overhaul a really long script that relies on this so... rightio.

You can save typing by using -

If(Relation::Link)

where "Link" is the relationship key field in the target GTRR table.

(I think that came from either Comment or Queue.)

  • Author

My deep appreciation to everyone's response to this question. You have all been very helpful.

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.