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.

value list across related tables

Featured Replies

Table called "Order" has fields "Serial#" and "Name" and a global field "ActiveYes" which is auto enter set to equal 1

Table called "CustomerList" has fields "Serial#" and "Name" and "Active"

The table is filled with customer data and "Active" is set to 1 or a 0 (to tell if the customer is active or not)

I can successfully make Order:Serial# pop up a value list showing ALL records from Customer:Serial# but I can not make it show me only the Active customers.

Following the instructions in Filemaker's help files, and creating a self-join works only if you are popping up a value list from field in the same table. How do I make it work across related tables?

If anyone can direct me to a solution it would be much appreciated.

Many thanks,

JA

Edited by Guest

  • Author

That's what I need. Many thanks.

Talking my way through understanding:

1) cTrue in your CustomerTable is a calculation as opposed to an auto enter because that is the easiest/safest?

2) Is it logic or just convention that has you create the self-join where the constant (cTrue) in the "All Customers" table and the variable (Active) is in the Table Occurance. Would it work the other way around?

3) I'm not sure why the value list is defined as 'using the values from the ActiveCustomer table' but where you indicate to include only related values you choose the 'Customers' table.

JA

1. It can be a calculation or a global - it doesn't matter much. A global would enable user to toggle between active and archived customers, if that's a desired feature.

2. The two fields are in the same table. However, the relationship is NOT symmetric: there's an unindexable field (calculation or global) on the "parent" side, and an indexed field on the "child" side. Such relationship works only in one direction, from the parent to the child. Therefore, the value list MUST be defined to show only related records from the child occurrence.

3. The value list is defined as "starting from Customers" because that's the shortest path required to make the distinction between active and archived. Once that's established, the value list will work in any context - even in an unrelated table.

I'm blaming that one on the time of day it was created. Thanks for the correction Comment. :yourock:

Ciao Mike,

Good catch about the unstored result.

I always considered this unstored result of 1 showing with no relation established a bug. That's why I'd prefer a global which behavior towards relationships is largely documented feature.

An as you said, we can make it vary according to our needs.

Hey Ugo,

I don't perceive a bug here. True, a global can be toggled - but you also need to make sure it always has a value (preferably the correct one : ).

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.