1 Reply Latest reply on Mar 11, 2014 8:38 AM by philmodjunk

    Show repetitions, can I script which repetition shows?

    TimHorton

      Title

      Show repetitions, can I script which repetition shows?

      Post

           Morning,

           I am using a field with 20 repetitions.

           On my layout, I want to show only 5 of them.

           I'd like to create a script that would change which repetitions is showing.

           For example, by clkick on a button, I could show the first five, and by clicking another, the last 5... Or even repetitions 4 to 9...

           Is this possible?

           Thank you!

        • 1. Re: Show repetitions, can I script which repetition shows?
          philmodjunk

               Sounds like a case where it would be much simpler NOT to use a repeating field. The same data could be placed in a related table with one record for each repetition. A portal filter or a match field could then be manipulated by your script to control which 5 records show in either a 5 record vertical portal or a 5 record horizontal portal.

               To do this with a repeating field would be much more complex. The simplest option would be to add another repeating field of just 5 repetitions and use your script to copy 5 selected values from your repeating field into the repetitions of this added repeating field. I don't know if a calculation with a 5 repetition result might also work for this or not.