Determine the number of repetitions in a repeating field

Discussion created by Vaughan on Feb 10, 2016
Latest reply on Oct 14, 2016 by beverly

I haven't needed to work with repeating fields for ages. I need to work out how many repetitions a repeating field is defined to have. Specifically this is in a loop to work out when to stop. This seems to work:


IsValid ( GetRepetition ( Job::Risk_Survey_Physical_Q ; $counter ) )


When $counter > number of repetitions, isValid returns zero.


If there is a better way, let me know.


Hope this helps.