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.

create new primary key but keep all relationships working

Featured Replies

I have a database that has many relationships. The problem I am facing is that the data I am bringing into my database has a different primary keys that the ones already made in filemaker. I want to rerun all my contacts so that the Id's match the ones in the database I am extracting from. How can I do this and not lose the functionality of my relationships?

Thanks Again,

Erik

It's a little unclear what you're doing.

Do you have existing records in your Contacts table that you adding information to from a new file? Or are you adding brand-new records to the Contacts table that had existing records? Or are you adding brand-new records to an empty table?

I'm assuming the middle option...

Don't worry about it. Your PKs don't match, so what? Do users actually use the PK?

If you're really hung up on it, you'll need a new field to hold the new PK, Replace[] the new PK into that field, go to each of the related records and Replace[] the Foreign Key with the related new PK.

You're going to make mistakes, so build a script to do this, and save backups often.

  • Author

I am adding new informatio to existing records. To be very specific I have a contacts tables and a donations table. They are linked by a unique Id so that in the contacts table I can look at a portal from the donations table and see all the donations that that individual has given. Her now lies my issue I am adding another 2000 donations into my contacts table but the ID's that will link them up are completely different for these existing contacts. In other words I have a contact named AL with an ID 5888 but I am now inmporting new donations for him and the only thing I can match on is by unique ID. The id that he has connected to all the donations I am importing now from this table is 10125. So I do not know how to display this information an import it so it matches his name in the contacts.

What information is there that can link the new Al to the old Al?

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.