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 8347 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Do you think it is possible to create a calculation that would string a related column of information into a field in the master record.

I am afraid that it will have to be a tedious script, but I thought I should pass it by the collective.

From this:

[Manufacture]

[Related Widget1]

[Related Widget2]

[Related Widget3]

To This:

[Manufacture][Widget1,Widget2, Widget3]

The result is for a final export that will publish a listing of manufactures and their products. A line return would take up to much space so that is why I need it all on one line.

Posted

If I understand you correctly, you simply want to remove the returns in a field, so you are listing items on one line with a comma to separate! This is easy! You can use a calculation or a script, but the trick here is to use the Substitute command. So, for example, you have a column of:

Apple

Orange

Pear

Grapes

In the field <FruitName>, and want to set the field <FruitLine> to the list without the returns.

Use the following:

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

SetField <FruitLine>

Substitute(<FruitName>, “ par.gif ”, “, “)

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

This will replace the returns with a comma and a space!

Hope this helps,

Rigsby

Posted

Assuming each related Widget is in a separate record in the related file...

First you need a value list that returns the related Widgets.

Next, a calc field that uses the ValueListItems formula.

Then, a calc field that strings the individual items from the previous calc field, replacing the paragraph marks with, say, commas (use the "Substitute" formula).

Now create a calc field that strings the Manufacturer, a semicolon (or whatever), and the final calc field.

HTH,

Dan

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