Accessing list items from group (repeats) at a later point in questionnaire - ODK and pyxform Question

I have a list of questions that are asked in repeatable group
snippets.

See below for a repeatable snippet

<house_members jr:template="">
<no_of_person/>
<name_of_person/>
<date_of_birth_person/>
<age_of_person_approx/>
<sex_person/>
<child_under_2_yrs/>
<child_under_2_yrs_care_giver/>
<women_13_49_yrs/>
<woman_marital_status/>
<years_of_education/>

<person_sleep_hh_last_night/>
<any_one_else_in_hh/>
</house_members>

Once the flow has gone through this a couple of times the is there a
way of accessing the instance of "house_members" that can be accessed
and shown(house_members(1)/name_of_person) in a single select or
multiselect control down the line in the questionnaire?

I am new to ODK but , it is by far the most comprehensive and flexible
ecosystem in this space.

-R

I'm not sure, but there might be a way to do this using an xpath formula.
If you want to reference a house member's name in a label try editing the
xml and putting something like this in the label:

Pyxform, now XLSForm uses ${variables} that reference question names
instead of xpath formulas, and trying to use xpath formulas in an XLSForm
might lead to unexpected behavior, so editing the xml is probably the way
to go.
Post your xlsform and xml if you can, that will help us give more specific
advice.
Regards,
-Nathan

··· On Wednesday, April 18, 2012 4:42:14 AM UTC-7, arbor wrote: > > I have a list of questions that are asked in repeatable group > snippets. > > See below for a repeatable snippet > > > > > > > > > > > > > > > > > > > Once the flow has gone through this a couple of times the is there a > way of accessing the instance of "house_members" that can be accessed > and shown(house_members(1)/name_of_person) in a single select or > multiselect control down the line in the questionnaire? > > I am new to ODK but , it is by far the most comprehensive and flexible > ecosystem in this space. > > -R > > > > >

Short answer: No.

Long answer: If you patch in "new-style" repeats into the core, then
maybe, but probably no.

https://groups.google.com/group/opendatakit/browse_thread/thread/f1eb580b6c07d843
https://groups.google.com/group/javarosa-developers/browse_thread/thread/1e1e3681580a407a

··· On Thu, Apr 19, 2012 at 10:45, Nathan wrote: > I'm not sure, but there might be a way to do this using an xpath formula. If > you want to reference a house member's name in a label try editing the xml > and putting something like this in the label: > > Pyxform, now XLSForm uses ${variables} that reference question names instead > of xpath formulas, and trying to use xpath formulas in an XLSForm might lead > to unexpected behavior, so editing the xml is probably the way to go. > Post your xlsform and xml if you can, that will help us give more specific > advice. > Regards, > -Nathan > > > On Wednesday, April 18, 2012 4:42:14 AM UTC-7, arbor wrote: >> >> I have a list of questions that are asked in repeatable group >> snippets. >> >> See below for a repeatable snippet >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Once the flow has gone through this a couple of times the is there a >> way of accessing the instance of "house_members" that can be accessed >> and shown(house_members(1)/name_of_person) in a single select or >> multiselect control down the line in the questionnaire? >> >> I am new to ODK but , it is by far the most comprehensive and flexible >> ecosystem in this space. >> >> -R >> >> >> >> > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en

Hi Yaw,
Could you elaborate further on the "new-style" repeats? We have been
working on a large-scale household survey using ODK (I would love to report
to the community our survey at a later point of time) and this feature is
the only thing we wish for.

Thanks a lot,
Trung.

··· On Monday, April 23, 2012 1:00:24 AM UTC+2, Yaw Anokwa wrote: > > Short answer: No. > > Long answer: If you patch in "new-style" repeats into the core, then > maybe, but probably no. > > > https://groups.google.com/group/opendatakit/browse_thread/thread/f1eb580b6c07d843 > > https://groups.google.com/group/javarosa-developers/browse_thread/thread/1e1e3681580a407a > > > On Thu, Apr 19, 2012 at 10:45, Nathan wrote: > > I'm not sure, but there might be a way to do this using an xpath > formula. If > > you want to reference a house member's name in a label try editing the > xml > > and putting something like this in the label: > > > > Pyxform, now XLSForm uses ${variables} that reference question names > instead > > of xpath formulas, and trying to use xpath formulas in an XLSForm might > lead > > to unexpected behavior, so editing the xml is probably the way to go. > > Post your xlsform and xml if you can, that will help us give more > specific > > advice. > > Regards, > > -Nathan > > > > > > On Wednesday, April 18, 2012 4:42:14 AM UTC-7, arbor wrote: > >> > >> I have a list of questions that are asked in repeatable group > >> snippets. > >> > >> See below for a repeatable snippet > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> Once the flow has gone through this a couple of times the is there a > >> way of accessing the instance of "house_members" that can be accessed > >> and shown(house_members(1)/name_of_person) in a single select or > >> multiselect control down the line in the questionnaire? > >> > >> I am new to ODK but , it is by far the most comprehensive and flexible > >> ecosystem in this space. > >> > >> -R > >> > >> > >> > >> > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options: http://groups.google.com/group/opendatakit?hl=en > >

I was wondering, if someone has already tried getting these new style
repeats working in ODK?

··· On Monday, April 23, 2012 1:00:24 AM UTC+2, Yaw Anokwa wrote: > > Short answer: No. > > Long answer: If you patch in "new-style" repeats into the core, then > maybe, but probably no. > > > https://groups.google.com/group/opendatakit/browse_thread/thread/f1eb580b6c07d843 > > https://groups.google.com/group/javarosa-developers/browse_thread/thread/1e1e3681580a407a > > > On Thu, Apr 19, 2012 at 10:45, Nathan wrote: > > I'm not sure, but there might be a way to do this using an xpath > formula. If > > you want to reference a house member's name in a label try editing the > xml > > and putting something like this in the label: > > > > Pyxform, now XLSForm uses ${variables} that reference question names > instead > > of xpath formulas, and trying to use xpath formulas in an XLSForm might > lead > > to unexpected behavior, so editing the xml is probably the way to go. > > Post your xlsform and xml if you can, that will help us give more > specific > > advice. > > Regards, > > -Nathan > > > > > > On Wednesday, April 18, 2012 4:42:14 AM UTC-7, arbor wrote: > >> > >> I have a list of questions that are asked in repeatable group > >> snippets. > >> > >> See below for a repeatable snippet > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> Once the flow has gone through this a couple of times the is there a > >> way of accessing the instance of "house_members" that can be accessed > >> and shown(house_members(1)/name_of_person) in a single select or > >> multiselect control down the line in the questionnaire? > >> > >> I am new to ODK but , it is by far the most comprehensive and flexible > >> ecosystem in this space. > >> > >> -R > >> > >> > >> > >> > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options: http://groups.google.com/group/opendatakit?hl=en > >

Trung,

I'd suggest you ask that question on the javarosa list. There is an
old thread at https://groups.google.com/group/javarosa-developers/browse_thread/thread/4f1a08299bf18b38/459c8aff7fe57296
that outlines many of the changes, but I bet there have been changes
since Drew wrote that post.

Yaw

··· On Wed, Apr 25, 2012 at 02:09, Trung Dang Le wrote: > Hi Yaw, > Could you elaborate further on the "new-style" repeats? We have been working > on a large-scale household survey using ODK (I would love to report to the > community our survey at a later point of time) and this feature is the only > thing we wish for. > > Thanks a lot, > Trung. > > > On Monday, April 23, 2012 1:00:24 AM UTC+2, Yaw Anokwa wrote: >> >> Short answer: No. >> >> Long answer: If you patch in "new-style" repeats into the core, then >> maybe, but probably no. >> >> >> https://groups.google.com/group/opendatakit/browse_thread/thread/f1eb580b6c07d843 >> >> https://groups.google.com/group/javarosa-developers/browse_thread/thread/1e1e3681580a407a >> >> >> On Thu, Apr 19, 2012 at 10:45, Nathan wrote: >> > I'm not sure, but there might be a way to do this using an xpath >> > formula. If >> > you want to reference a house member's name in a label try editing the >> > xml >> > and putting something like this in the label: >> > >> > Pyxform, now XLSForm uses ${variables} that reference question names >> > instead >> > of xpath formulas, and trying to use xpath formulas in an XLSForm might >> > lead >> > to unexpected behavior, so editing the xml is probably the way to go. >> > Post your xlsform and xml if you can, that will help us give more >> > specific >> > advice. >> > Regards, >> > -Nathan >> > >> > >> > On Wednesday, April 18, 2012 4:42:14 AM UTC-7, arbor wrote: >> >> >> >> I have a list of questions that are asked in repeatable group >> >> snippets. >> >> >> >> See below for a repeatable snippet >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> Once the flow has gone through this a couple of times the is there a >> >> way of accessing the instance of "house_members" that can be accessed >> >> and shown(house_members(1)/name_of_person) in a single select or >> >> multiselect control down the line in the questionnaire? >> >> >> >> I am new to ODK but , it is by far the most comprehensive and flexible >> >> ecosystem in this space. >> >> >> >> -R >> >> >> >> >> >> >> >> >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options: http://groups.google.com/group/opendatakit?hl=en > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en