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.

Complex conditional value lists

Featured Replies

I'm having real trouble getting my head around this in FileMaker, yet I can mock it up in 5 minutes in Access with SQL queries, and changing the row source of a combo box :(

First table BOOKING = BookingID, BookingDate, BookingTitle, CustomerID, CategoryGroup

Second table CATEGORY = CategoryID, CatDescription, CatInfo, CategoryGroup

Third intermediate table (Portal) BOOKINGCATEGORY = BookingID, CategoryID (with relations to show the description and info in the portal row)

[bOOKINGCATEGORY is related to BOOKING via BookingID and CATEGORY via CategoryID]

I need a value list dropdown in the Portal for the CategoryID which only shows the Category records which match the CategoryGroup in the master Booking table.

There are only a small set of CategoryGroups, these are, for example: 1, 2, 3, 4 and All.

So to further complicate things, I need the value list in the portal also to show, for a master record with CategoryGroup=1, all Categories with CategoryGroup=1 and CategoryGroup=All records.

So for example Record 1:

BookingID=1, CategoryGroup=1

Portal: CategoryID Value list to show all Category records with CategoryGroup=1 and =All, (but not CategoryGroup 2, 3 or 4).

I can't seem to find an elegant way of doing this without creating a temp table first for the list.

Any tips gratefully received!

(FileMaker Pro 11v2 at present)

In addition to your core relationships:

Booking -< BookingCategory >-Category

define an auxiliary relationship (using a new occurrence of the Category table) as:

Booking::CategoryGroup = Category 2::CategoryGroup

Set your value list to show values from Category 2::CategoryID, show only related values starting from Booking.

  • Author

Terrific Comment, thanks for the speedy reply, it works! Now I just need to tackle the "all" issue!

(Finding it hard to change my logic from SQL/queries to the way FileMaker uses relationships and value lists.)

Try defining a calculation field in the Booking table (result is Text) =

List ( CategoryGroup ; "All" )

Use this field for the auxiliary relationship instead of Booking::CategoryGroup.

  • Author

Try defining a calculation field in the Booking table (result is Text) =

List ( CategoryGroup ; "All" )

Use this field for the auxiliary relationship instead of Booking::CategoryGroup.

Thanks again Comment. Another great tip, never used the List function before. Had a slight issue as I'd made one of the group fields a numeric, but switched to text and now it's working my small test system, will now add some proper data and see how we go!

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.