1
0
-1

I'm looking for something similar to the sfcInstanceManager.findInstanceIndex(noderef) function from Composer. The use case here is: from a field inside a repeat, access an array of data at the index equal to the index of the repeat instance the field lives in.


Thanks for any help you can provide.

    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      In a business rule you can use:

       

      data.$i

       

      In a binding within a rich text area, you can use:

       
      {{data.$i}}

       

      1. Glenn Crook

        This does the current level of repeat, how do you find the indexes of a parent repeat in nested repeats?

      2. Jeff Yates

        Something like this (copied from a Text Display):


        {{data.$p.$i}} - {{data.$i}}


        $p gets you the parent level.

      CommentAdd your comment...