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.

many-to-many relationship problem

Featured Replies

I'm using the inventory template. The problem is that I have a many-to-many relationship that I don't know how to handle in Filemaker (I'm new to FM, but have database design experience). Each product in my Inventory table can be assigned to more than one category. A category can be assigned to many products. So, I built a bridge table called Inventory_Category to hold a concatenated key of the InventoryID from the Inventory table and the CategoryID from my Category table. Now when I'm in form mode and I'm entering a product, I need to be able to click a button (or do something) so that I can add multiple categories to it. How would I build this and have it insert the current InventoryID and the CategoryID I specify into my Inventory_Category bridge table? The CategortyID being entered must exist in the Category table. Any help is appreciated!

Here's an example I built for someone else of a many-to-many relationship using an invoicing example. You'll see how it uses two foreign keys rather then one in the join table.

joinprint.fp7.zip

  • Author

Thanks! Your file seems like what I need for my solution, however, my export needs are different. If I have an item record that has multiple categories, I need it to export with the redundant data as follows:

Sterling Silver Ring 19.99 all-rings

Sterling Silver Ring 19.99 stoneless-rings

Sterling Silver Ring 19.99 pave-rings

etc.... for all my products. Is there a way to do this?

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.