laker_42 Posted May 30, 2002 Posted May 30, 2002 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
andygaunt Posted May 30, 2002 Posted May 30, 2002 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
laker_42 Posted May 31, 2002 Author Posted May 31, 2002 Thanks for the script. I knew there had to be a way to do it. I will give it a try. Thanks, John
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now