Repeat Group - problems implementing the Good Practice note on confluence

I think I’ve followed the best practice for Repeat Groups for the situation
where the Repeat Count is reduced from 2 to 1 described here:
https://confluence.dimagi.com/display/commcarepublic/Using+Repeat+Groups+in+the+Form+Builder

See attached screenshot.

However, when the form runs it repeats 1 more time than it should!

What have I done wrong?

Thanks

Simon

Google ChromeScreenSnapz046.pdf (145 KB)

Hi Simon. I’m not certain about this, but I believe that because you are
writing the display condition from within a repeat group, you may need to
contextualize it, i.e.:

position(…) < current()/…/…/subagents_num

I realize that the documentation you referenced there does not mention this
at all, so if that turns out to work, would you let me know so that I can
update it? Otherwise, could you link me to the form in question so I can
take a closer look?

··· On Tue, Feb 28, 2017 at 5:41 PM, Simon Berry wrote:

I think I’ve followed the best practice for Repeat Groups for the
situation where the Repeat Count is reduced from 2 to 1 described here:
https://confluence.dimagi.com/display/commcarepublic/Using+
Repeat+Groups+in+the+Form+Builder

See attached screenshot.

However, when the form runs it repeats 1 more time than it should!

What have I done wrong?

Thanks

Simon


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.

Many thanks.

I’ve emailed you directly with access details so that you can have a look.

Regards

Simon
2/3/17

··· On Wednesday, March 1, 2017 at 2:29:17 PM UTC+3, astone wrote: > > Hi Simon. I'm not certain about this, but I believe that because you are > writing the display condition from within a repeat group, you may need to > contextualize it, i.e.: > > position(..) < current()/../../subagents_num > > I realize that the documentation you referenced there does not mention > this at all, so if that turns out to work, would you let me know so that I > can update it? Otherwise, could you link me to the form in question so I > can take a closer look? > > On Tue, Feb 28, 2017 at 5:41 PM, Simon Berry <si...@colalife.org > wrote: > >> I think I've followed the best practice for Repeat Groups for the >> situation where the Repeat Count is reduced from 2 to 1 described here: >> >> https://confluence.dimagi.com/display/commcarepublic/Using+Repeat+Groups+in+the+Form+Builder >> >> See attached screenshot. >> >> However, when the form runs it repeats 1 more time than it should! >> >> What have I done wrong? >> >> Thanks >> >> Simon >> >> -- >> 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-user...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >