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.

Duplicate all found records???

Featured Replies

Is there a way to have a script that would duplicate all the records in a current found set?

So if I have 50 records in my database, perorm a find, now have 5 records in my found set, then I want to run a script that would duplicate just those 5 records in the found set.

Larry

Off the top of my head, this would do it:

Go to Record/Request/Page [Last]

Loop

Duplicate Record/Request

Omit Record

Omit Record

Exit Loop If [Get ( FoundCount ) = 0]

End Loop

  • Author

Thanks. That seems to work. One last question. Is there a way to add one more step. After the records are duplicated, or during the duplication process, I would like to change the value of one single field in each record. I would like to do this by pasting the contents of the clipboard into the field of each duplicated record.

I tried:

Go to Record/Request/Page [Last]

Loop

Duplicate Record/Request

Paste[select:Questions::recordID]

Omit Record

Omit Record

Exit Loop If [Get ( FoundCount ) = 0]

End Loop

But that makes the whole script invalid...the found records did not even duplicate.

Any thoughts?

Larry

Sounds like it should work, unless the record ID field is not on the current layout, the layout is not in the context of Questions, the field is not modifiable, the field is not enterable on that layout, or the field is not of the same data type (text, number, etc.) as the data you're pasting.

If I had to guess, I'd bet that a field called recordID is auto-enter and does not allow user to modify.

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.