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.

Featured Replies

I have a data base of records I do a search for the found set I need then I try running the following script but it only duplicates one record. What's going wrong? I checked and the records are starting at number one. The only record that gets duplicated is record one. Here is the script.

Loop

Duplicate Record/Request

Go to Record/Request/Page [Next; Exit after last]

End Loop

Any help would be appreciated.

Thanks in advance.

You need to sort the list

  • Author

Thanks this sort of helped. I now have a duplicate but I also have my originals mixed in with the duplicates. Can it only show the duplicates?

Thanks again for your time.

When a record is duplicated on an unsorted list it is created at the end of the found set of records. FileMaker navigates to the newly created record. You are left at the end of the list after the first record duplication. You need a way to reliably navigate through the entire list despite always bouncing to the newly created record.

Unsort Records

Go to Record/Request/Page[ First ]

Set Variable [ $recordPosn; Value:1 ]

Set Variable [ $foundCount; Value:Get(FoundCount) ]

Loop

Duplicate Record/Request

Set Variable [ $recordPosn; Value:$recordPosn + 1 ]

Exit Loop If [ $recordPosn > $foundCount ]

Go to Record/Request/Page [ $recordPosn; No dialog ]

End Loop

To leave only the duplicates, add these two lines at the end of the script.

Go to Record/Request/Page[ First ]

Omit Multiple Records[No dialog; $foundCount]

Edited by Guest
added Omit original set

FWIW I think it is preferable to always put the exit loop if statement as the first statement in the loop. Then you know you're never going to trigger the action if the exit condition has been met.

  • 5 years later...
  • Newbies

Dear TheTominatorthis old post of yours has really saved me today, thank you so much...!

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.