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.

Creating a new table with relation via script

Featured Replies

  • Newbies

Hi,

I'm trying to find a way to create new tables with a relationship to my existing db using a script.

The point is that I have a table "parts" and a lot of distributurs which are selling the parts. I want to link the new table f.e. called "distr1" to the table "parts". The user can should chose the related field in the "distr1" table which will be related to the primary field in the "parts" table.

Any idea, of course a plug-in?

Thanks a lot,

Chris

No, you cannot do this. And you dont want to either. It's very poor data design.

What you need is something like a Distributors table that has a record for each distributor. This distributor record then gets related to the parts records.

  • Author
  • Newbies

I think you are right.

I have build a table to import data from every distri I have and assign a "IMPORT_ID" for every import the user does. So I can recover every import for the user and everythink is fine.

Thanks for the brainstrom

Chris

Dear DieHoelle,

If I didn't misunderstand you. A part may be sold by many distributors and a ditributor may sell many parts.

If it is the case, then you have a so-called many-to-many relation. A common practice to resolve such problem in relational design is to create a join table, say DistributorPart that contains both keys from Distributor and Part table.

Best regards,

Omega Goh

The FileMaker Specialist

Speedy Scaleable Solutions

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.