Skip 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.

What's the Best Practice for Duplicating Records?

Featured Replies

Hi there,

I'm trying to figure out the cleanest way to create a set of new records in one table based on the found set in another table.

I have a table containing TEMPLATE records, or records that are used for the sole purpose of populating new records in another table.

From a FOUND SET of records in the TEMPLATE table (3-20 records at any given time), I need to create an equal number of new identical records in a DESTINATION table.

What would be the best way to do this? Is there a way to reach out from the DESTINATION table and step through the found set or does it have to be performed from the context of the TEMPLATE table? I'm hoping to get some ideas on the best practice before I start writing a script.

Any help would be greatly appreciated!

Perhaps it important to point the crutial issue here, it is wheter the found set is supposed to be historic data, say lines in a an invoice holding a snapshot of the price levels at the very moment the document was issued ...that is exact the same distinctions one should make between the use lookups and unstored calc's or values pulled from a relation away (filemakers 2NF).

--sd

  • Author

Thank you both for your replies. My case is as you described, Soren, whereby a particular single invoice order needs to automatically generate several line items, each being a snapshot of the pricing of the line item at the time the order is created.

Under these circumstances, would you recommend an export of the found set? If so, is it possible to export directly to a table in the same file?

Or Perhaps you can suggest a more elegant way to create these new line item records.

Yes import internal between tables is better, take a look at this:

http://www.dwdataconcepts.com/dl/tw/compinv2.ZIP

...although it deal with set or samples. But again does it depend on how fast it needs to be. If the system is served via IWP is imports between tables grayed out, so you have to do it more algorithmic, say like I did in my template Renewal.zip from this thread:

http://www.fmforums.com/forum/showtopic.php?tid/175845/post/228545/hl//

Where the found set is based on an earlier invoice....

--sd

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

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.