Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hi,

I am using a script to find a series of records. Each record is in a particular sector ie

Supermarket

Furniture Retail

Fashion

Field Sales

As the script runs through the records it 'inserts a calculated result' into a global field.

My Problem is that I only want the sector to appear once, so if there are three records with the same sector then only 1 instance of the word should appear.

can anyone help me with a solution?

Thanks

Darre

Posted

Hi Darre,

Try this ...

Go To Record/Request/Page [ First ]

Loop

If [ not Position ( global, textfield, global, 1)

Set Field [ global, If(IsEmpty(global), textfield, global & "

Posted

There is a quicker way if you want ALL values from that field (and not only those contained in the found set) which will also put them in alpha order for you.

If you create a Value List out of that textfield (using all values from field), then create a calculation (text, unstored) with:

ValueListItems(Status(CurrentFileName); "New Value List")

Then a simple step, without running through the records would be:

Set Field [ global, NewCalcField ]

It doesn't matter which record you are on when you fire this script because the calculation would display the same for all records. I corrected the above two posts; I had put ';' in syntax instead of ',' as required for pre-7 versions.

LaRetta smile.gif

This topic is 7249 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.