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.

Dynamically-filtered relationship problems

Featured Replies

I have two tables with the relevant parts defined as follows:

Event

conferenceID - Number

eventDate - Date

Conference

ownerID - Number

lastDay - Date calculation (unstored) defined as: Max (Events::eventDate)

Owner

earliestDayToShow - Date

In the relationship graph, I have the following table instances:

Conferences - Conference

Events - Event

Owners - Owner

OwnerConferences - Conference

I have these relationships:

between Conferences and Events:

Conferences::id = Events::conferenceID

between Owners and OwnerConferences:

Owners::id = OwnerConferences::ownerID

AND Owners::earliestDayToShow ≤ OwnerConferences::lastDay

My intention with this second relationship is as follows: in my layout which shows a particular Owner (from the Owners table instance) I want to have a portal showing all the Conferences (OwnerConferences) for that owner. And I want to allow the user to select a date (Owners::earliestDayToShow) which will filter the portal. This is so that the portal can be filtered to hide old conferences (i.e. conferences where the last event of the conference was before today's date, or some other user-specified date).

However, this isn't working... If I remove the AND Owners::earliestDayToShow ≤ OwnerConferences::lastDay part of the Owners - OwnerConferences relationship definition, then my OwnerConferences portal on the Owners layout does display all the conferences for that owner, as expected. However, if I include that part of the relationship definition, then the portal shows NO records, no matter what value I have Owners::earliestDayToShow set to.

Any ideas?

Are they both date fields?

  • Author

Are they both date fields?

Yes they are...

Conference

ownerID - Number

lastDay - Date calculation (unstored) defined as: Max (Events::eventDate)

Owner

earliestDayToShow - Date

Owners::id = OwnerConferences::ownerID

AND Owners::earliestDayToShow ≤ OwnerConferences::lastDay

You cannot use an unstored calculation as the matchfield on the "other" side of the relationship.

  • Author

Ok - I thought that might be the problem - but Filemaker didn't complain about it when I created the relationship.

Any alternate approaches which you might suggest which would accomplish the same desired end-result?

Thanks.

Get FileMaker 11. Much more flexible portal filtering built in. Some performance limitations if your base relation involves large record sets.

  • Author

Get FileMaker 11.

Ugh, I was afraid somebody would say that. Unfortunately, that's not possible right now, due to limited budget and limited time to upgrade the database to the v11...

The simple way would be to script a find and show the results in a list/table view of the Conferences table. If you must have it in a portal, then it's not so simple: search the forums for "Ugo method".

Ugh, I was afraid somebody would say that. Unfortunately, that's not possible right now, due to limited budget and limited time to upgrade the database to the v11...

There is no "upgrade the database". It is the same file format.

The only thing you'd have to do is set up the portal filter(s). Depends on the value of your time I guess.

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.