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.

1 to many relationship add related records

Featured Replies

Hi all,

Am a bit confused by this...

I have 4 tables, the first being the main table

The key field in all tables is "serialno"

I have the following relationships setup

MainTable serialno -> Table2 serialno

MainTable serialno -> Table3 serialno

MainTable serialno -> Table4 serialno

Against all these relationships I have ticked the option to allow creation of records in the child tables via the relationship

What I expected to happen was that I would create a record in MainTable with for example serial number 123456

then when I went into the subsequent tables 2,3 and 4 there would be a record in there with serial number 123456, but this isn't so

I create the record in the main table and this does nothing to the other tables.

I cannot use a script or portals to do this for other reasons.

Has anyone any ideas why this may not be working or am I reading into what this feature does incorrectly?

Many thanks

Edited by Guest

The second one -- your reading into what the feature does incorrectly.

The feature specifically has to do with creation through portals (or scripts, but we'll leave that one alone). What it does is creates a "ghost" record in a portal, that when entered into will automatically create the required record in the foreign table with all necessary criteria to meet the relationship.

I.e. if you relate by serialno and a datefield and add some data to the "ghost" row of the portal, it will add a new record to the foreign table with the same serialno and same datefield.

  • Author

Hi

Thanks for your reply.

In the filemaker help I read the following...

You can add records to a related table when you enter data in a record in the current table.

Add a record in a related table

If the related field is in a portal, type data into the field in the last row of the portal. If the related field isn't in a portal, type data into the field, then press Enter.

This seems to suggest that a portal is not necessary?

Thanks

Edited by Guest

A portal is not strictly necessary - if you place a related field on the parent layout, a related record will be created when you enter data into the child field. But this will only work once (a related field outside of portal always shows data from the FIRST related record).

What / he said :

Edited by Guest

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.