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

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

Recommended Posts

Posted

I have a repeating field that has 17 repetitions. I want to enter numbers from 1 to 17 in those repetitions. Is there any easy way to do this without having to manually enter the numbers? I would like to write a script that would do this for 33 records. Any help would be appreciated.

Thanks,

John

Posted

Well,

you could do this by simply finding your records and entering a number into the repetition and choose records replace.

Repeat 17 times for each number.

Or you can script it. You will need a global field [number format] as well (called _gNumber).

Create a layout with just your repeating field on.

The your script

Freeze Window

Go to record/request/page [first]

Set Field ["_gNumber", "0"]

Go to field [your repeating field, repetition 1]

Loop

Set Field ["_gNumber", _gNumber +1]

Set Field ["_gNumber"]

## Note the set field above has no field specified, just the calculation]

Go To Next Field

If ["Status(CurrentRepetitionNumber) = 1"]

Go to record/request/page [Exit After Last, Next]

Set Field ["_gNumber","0"]

End If

End Loop

Make sure you find only those records you want to add the numbers to, otherwise you will change all records.

HTH

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