Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6929 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I need to write a script to populate a layout with records, hiding duplicates.

My records have a field that can be the same across several records and I want to show only one instance of this field rather than all records.

How can I do this in a script?

Thanks

Posted

There are many many examples and posts on here about finding duplicates, deleting duplicates, etc. Do a search and you will come across many posts.

Here is the jist of it, but I would still suggest you do a search and look at past posts.

1. Show all records that you want to check

2. Sort it by the field you want to check if its a duplicate

3. Perform a loop script where it goes something like this:

Go to Record [First]

Set Variable [$DupCheck; fieldWhatever] (Set a global field if Using FM7 or prior versions)

Go to Record [Next]

Loop

If [fieldWhatever = $DupCheck]

Omit Record

Else

Go to Record [Next; Exit After Last]

End If

End Loop

This topic is 6929 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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