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.

How to copy a record & its related records?

Featured Replies

I need to write a script that will duplicate a record and all of its related records. The first file has an auto entered serial number as its unique identifier. The second file has the first files serial number as its identifier. It is a one to many relationship. I have tried several different ways but have not been able to do it. Anyone have any ideas that I can try?

Thanks,

John

  • Author

Thanks for the link! I think that will do it for me. One question though, the file is a multi-user file. How will that affect using a global variable? Will I have to take some extra steps to ensure that the global field doesn't get overwritten?

Thanks again,

John

No. You will be okay. "Global" is an inaccurate description. They are actually local to each user. I.e., each user has his/her own copy of global values.

  • Author

Oh ok. I was told that Global variables were not local to each user and to try and avoid them on multi user fields.

Thanks for correcting that way of thinking! This is good to know.

John

Globals are useful on multi-user files for keeping temporary private data for use by each user such as when running scripts etc.

On the other hand, if you need to store true global (public) data that is immediately accessible to all users, a popular method is to have one file with a single record and multiple non-global fields to hold the public data. Set up a constant relationship to this file from your other files, and then everyone can read and write (or overwrite) the data.

I like to call these non-global globals 'universals' to reduce confusion and add a bit of clarity. wink.gif

Yes. Whenever I get into a discussion about local globals and global locals, I really start to wonder if I'm making any sense. grin.gif

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.