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.

filter + self-join + portal = confused

Featured Replies

Hi

I'm trying to display in a portal, a subset of a table's records, based on a calculation.

pseudo code: if itemQty is =< minimumAllowed, then display that record in the portal.

What is a simple way to do this?

  • Author

I should clarify that "itemQty" and "minimumAllowed" are both numeric fields in this table.

You need to create a calculation key field in the child to only have a value when your condition is true. It could match a "constant" in the parent, or it could produce the portal's main key itself. Examples:

Case ( itemQty <= minimumAllowed; 1 )

That would match a Constant, = 1 field in the parent, which you'd add to the portal's relationship.

Case ( itemQty <= minimumAllowed; key field )

That would match the portal's parent key field itself (which you haven't told us, hence I can only do generic).

  • Author

Thanks Fenton.

What is confusing me is the self-join nature of the relationship. I want the portal to contain the same (low_qty) items (from the same table) regardless of which record I'm viewing.

Also, I'm a bit thrown-off by FileMaker's recent change in portals referencing related tables rather than the relationship itself, as they used to. It's been a couple years since I used Filemaker (v5). I'm pretty slow about these things. I'll catch on eventually.

If you want to always see the same thing, then use a "constant" calculation field on the "left" side, and the calculation that produces a 1 on the other. As long as there's >0 found set, the relationship will be the same (relationships don't work when there's a zero found set). Whether it's a self-relationship or not makes little difference.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.