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

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

Recommended Posts

Posted

OK, I'm in Dev 7.0v3 (8 upgrade coming).

Been doing FMP since 1.0. But I've never really used repeating fields.

I need to find how to set a particular repetition in a repeating field.

Help!

Jim

Posted

In FM8, you can set a repetition by a calculation. In prior versions, use conditions in the script to decide which repetition to set:

If [ field1 = 1 ]

Set Field [ field2[1] ; "somevalue" ]

Else If [ field1 = 2 ]

Set Field [ field2[2] ; "somevalue" ]

...

Posted (edited)

Hi,

There are several methods to set a specific repetition, even with 7 or earlier versions.

One could be to set the repeating field to be a lookup field and invoke a trigger calculation to fill the rep.

Another would be a loop with a global and the use of Get(CurrentRepetitionNumber) as a way to stop the loop when you reached the correct iteration.

The "challenge" for method 2 is to set the tab order for the repeating field and I would suggest you move to a specific layout with just this repeating field for such a job.

There are a few files attached here on the forums either .fp5 or .fp7 that you may find if doing a search for "repeating field"

Edited by Guest

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