Output Value in a group nested inside a repeat group

I am using to display the position of
the loop in a repeat group, which works fine. However, when i add group(not
repeat group) inside the repeat group and place the repeat counter (), the counter remains at position 1 even though
the repeat counter is greater than 1? Is there a fix here?
Thanks guys,
Martin Mutuku

https://lh3.googleusercontent.com/-CMDJSbhbBhQ/WbvFi6QyOHI/AAAAAAAACmw/-bRyl4PVsbgyt6CIQ0aXI4qnLXNwry0agCLcBGAs/s1600/group_error_image.PNG

Hello,

I believe this is because when you have an inner group then the
position(..) function will give back the position of this group which will
always be one. Using the expression position(../..) instead should work as
this will get the position of the next level up (IE the repeat group).

Cheers,
Will

ยทยทยท On Fri, Sep 15, 2017 at 8:21 AM, Martin Mutuku wrote:

I am using to display the position of
the loop in a repeat group, which works fine. However, when i add group(not
repeat group) inside the repeat group and place the repeat counter (), the counter remains at position 1 even though
the repeat counter is greater than 1? Is there a fix here?
Thanks guys,
Martin Mutuku

https://lh3.googleusercontent.com/-CMDJSbhbBhQ/WbvFi6QyOHI/AAAAAAAACmw/-bRyl4PVsbgyt6CIQ0aXI4qnLXNwry0agCLcBGAs/s1600/group_error_image.PNG

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.