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.

script to copy and paste repeating field

Featured Replies

  • Newbies

I'm new to this, so thanks for any help you can give me. I'm trying to create a script that copies ALL the contents of a repeating field and pastes it into another repeating field. It seems like it would be easy, but for some reason I can't seem to copy ALL the contents. I can copy the data in the first line, or I can specify the script to copy a specific line of the repeating field, but I can't copy everything. Unfortunately, each record has a varying amount of data in the repeating field (i.e., one record might not have anything in the repeating field, and another record might have 10 lines in the repeating field.) I can tell that the repeating fields are going to be a problem, but until I can redesign the database, I need to find a way to do this.

Thanks again for any help.

quote:

Originally posted by peggy:

I'm new to this, so thanks for any help you can give me. I'm trying to create a script that copies ALL the contents of a repeating field and pastes it into another repeating field. It seems like it would be easy, but for some reason I can't seem to copy ALL the contents. I can copy the data in the first line, or I can specify the script to copy a specific line of the repeating field, but I can't copy everything. Unfortunately, each record has a varying amount of data in the repeating field (i.e., one record might not have anything in the repeating field, and another record might have 10 lines in the repeating field.) I can tell that the repeating fields are going to be a problem, but until I can redesign the database, I need to find a way to do this.

Thanks again for any help.

Copying each one individually is the only way. There is no "copy all" function for repeating fields.

When you redesign make sure the evaluate why you use the repeating fields, you might be much better off using related files.

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Consultant

Database Resources

mailto:[email protected]

http://www.database-resources.com

=-=-=-=-=-=-=-=-=-=-=-=-=

  • Author
  • Newbies

Poop. Oh well. Thanks for the quick reply!

While you may not be able to do everything you want with FileMaker, you might try this to cut down on the amount you have to do.

Create a layout with just the repeating field you want to copy and all of the repetitions for that field. Don't put anything else on the layout. Use the Copy All command to copy all the information from that layout.

I haven't tried it, but this might place a tab deliminated string with the contents of each repetition between the tabs. Then you would need to parse this data so that you can set the data in the fields where you want it, but at least you didn't have to use the Copy command more than once.

Chuck

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.