September 2, 200520 yr 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
September 2, 200520 yr 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" ] ...
September 2, 200520 yr 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 September 2, 200520 yr by Guest
Create an account or sign in to comment