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.

Featured Replies

File Name: View Selected Child

File Submitter: dansmith65

File Submitted: 22 Aug 2012

File Category: Samples

FM Version: 11

This is a modification of comment's sample file found here: http://fmforums.com/forum/topic/71867-getting-more-out-of-filtered-portals-2view-selected-child/

This version uses custom functions to manage the selected values in a single global variable, and a calculated field/relationship instead of a filtered portal.

The goal was to provide access to the selected child via a relationship, and to define a default selection, if no child has been selected.

This should work with versions older than 11, but I didn't bother to test with any older versions of FileMaker.

Click here to download this file

Why not just use a global field?

  • Author

Because the selected child would be selected for all parent records. This method allows each parent to have it's own selected child.

Well, no, the selected child would only be visible to the associated parent record.

But with a global, other parent records would not have a selected child; so - aha - I see the point of your method.

Why not just use a global field?

Because the selected child would be selected for all parent records.

I am not so sure about that:

ViewSelectedChildGlobal.fp7.zip

  • Author

That's a cool way to accomplish the same result. So, to compare your global field method to mine...

ViewSelectedChildGlobal by Comment

  • requires initialization on file open

View Selected Child by Dan Smith

  • requires Custom Functions
  • script requires Refresh step, which causes flashing on Windows

Ok, I thought I would find more differences than that, but they both use a single field, a single "select" script, per-user selection storage method. I wouldn't even know how to go about testing performance differences. My guess is that there's not a big enough performance difference to worry about.

ViewSelectedChildGlobal by Comment

  • requires initialization on file open

Well, I wouldn't say "requires". It's merely a quick way to provide a "default" selection. I am not convinced that's a good idea, but I wanted to match my file's features to yours.

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.