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.

Multiple relationships question

Featured Replies

I have a Customer who has many devices.  Each device has many Services.

 

I want to be able to display Services that are related to the owner of a device in a portal on my Customer layout so thay I do not have to go to my Device layout first.

 

I am having a complete mind-block over this, I know it can be done, I am pretty sure that I covered it while learning to use FM but for the life of me I cannot implement it.

 

Any help please?

I assume that you have a Services portal on your Devices layout?  If so, copy it and paste it on your Customer layout.  

 

FileMaker evaluates according to context.  So if you have a structure similar to:

 

Customers -< Devices -< Services

 

... then the same portal on Devices to display Services can also be placed on Customers.  Cool beans!

As LaRetta says, a Services portal will work on the Customer layout as well as the Device layout.

 

Now, if you're wanting to be on a Customer and display Services for a selected Device, that takes a little more doing. A typical method would be to create a global field in the Customer table, e.g. "gSelectedDevice," and make a relationship from that field to a new table occurence of Services. Make a portal based on that. Next, create a button in your Device portal connected to a script that sets gSelectedDevice to the device ID that you clicked. You can probably take it from there.

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.