jcoconnor Posted September 2, 2005 Share Posted September 2, 2005 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 Link to comment Share on other sites More sharing options...
Ender Posted September 2, 2005 Share Posted September 2, 2005 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" ] ... Link to comment Share on other sites More sharing options...
Ugo DI LUCA Posted September 2, 2005 Share Posted September 2, 2005 (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 September 2, 2005 by Guest Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6665 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