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.

Arrgh. following multiple relationships.

Featured Replies

Another problem that I constantly run into (as I try to get used to FileMaker vs SQL) is how to display data that's seperated from a record by two or more relationships. Here's a typical scenario.

Addresses DB

Customer DB

Invoice DB

Customers can have a main, shipping and billing address (all possibly the same), so there's three address fields with address id's. On a new invoice I want to be able to type in a customer code and have the main and billing addresses fill in.

So how's this normally done? Do I need a script? Do I save the address IDs into fields in the Invoice DB and have Invoice->Address relationships based on those? Do I need a scipt for that or can I just base the Invoice's Address ID off a related value from the Customer DB?

There are never any 3 step relationships, even in SQL (at least I have never encountered or used any, nor do I even know how to accomplish one). You just relate from DB1 to DB3, via the ID of the record in DB2.

So in this case you have some way of identifying the Main and Billing address in the AddressDB. How I do it is with a simple calc: cAddressID_type = CASE ( Type = "Main", CustomerID & "-M", Type = "Billing", CustomerID & "-B", "" )

Then from the InvoiceDB, you need 2 calcs and 2 relationships to derive the addresses. The calcs would be: cAddressID_billing = CustomerID & "-B" and cAddressID_main = CustomerID & "-M".

Then setup a relationship from each of these calcs to the cAddressID_type field in the AddressDB and you have the addresses linked to the invoice.

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.