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.

Trouble with Many-to-Many relationship

Featured Replies

  • Newbies

I'm new to fileMaker, but have been reading a lot on one to many and many to many relationships... but still stuck. I've tried creating a 3rd table keying off elements of two other tables. But I'm not getting any results (populated fields)

In a nutshell I've got a database that idenitifies Composites which are made up of Roles. Composites can have many Roles under them. The same Role can appear in multiple Composites.

Then I have the Role to Transaction Code relationship in which Transaction codes can similarily vary in Roles they are housed in.

Under "test" layout I was attempting to populate results.

Any direction would be appreciated.

v5.fp7.zip

It's usually easier to populate the join table through portals, that way one of the foreign keys is populated by the relationship. I have added a portal to each of your Composite and Role layouts so you can see how it works. Adding a value list of the available Role/Composite IDs simplifies data entry and ensures referencial integrity.

I have also renamed your tables so they are clear about the entities they represent, and changed your recordIDs to be auto-entered serial numbers, to ensure all Composites and Roles have IDs (so they can be used in relationships.)

Good luck, jellyroll!

CompositeRolev5.fp7.zip

  • Author
  • Newbies

Looks good. Though I'm having trouble when I import records. It does not seem to update the relationship on the portal. Any ideas?

However I did get the data in the format I need, much appreciated. The portals are relaying the data via a new layout that wasn't functioning before :

Orson Scott Card rocks!!

Picture_21.png

Edited by Guest

  • Author
  • Newbies

The issue appears to be that the Composite_Role Table is not updating to the new imported records. This isn't something I have to do manually is it?

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.