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.

associating records

Featured Replies

I have a database with some tables for families. One table is for children, one is for parents, and a third, "map":

fields:

internalkey

child.key

parent.key

family.id

I'd like to have a layout that would list parents and children and allow the user to select/highlight each and click an "associate" button. The script for that would use an approriate family.id if either the child or parent is already "related" in the database, but otherwise generate a new family id, adding a record to the map. If both are related, two records should be created that map both people to each family id (family structure really is complex that way, I think).

The main problem is, how do I list both parents and children on a single layout? If I use the family map table, it will only show relations already built. frown.gif

  • Author

I've tried creating a new table with these fields:

parent.key

child.key

created an instance in the relations graph (2 actually, because filemaker wants two instances when I draw the relations, I think because it creates a loop through the map table), and added "=" relations between the child and parent table keys and these fields. I set the options for the relation to cascade record additions and record deletions -- I hoped this would provide a single list of parents and children on one page.

For some reason when I add a child or parent record it does not create a record in my new table frown.gif -- but even if it did, my layout can only work from one of the occurances. Anyway, I only have one occurance of parent and one of child in the relations graph, why is it not creating records? I thought at first it was because of how I worked with the relations graph, I added new occurances of parent and child tables and associated them seperately -- but I've removed those and used the original parent and child table occurances.

It's not so important to find an answer to that unless there's some way of showing record information from parents and children simultaneously in this layout. But, I thought maybe this approach would be fresh?

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.