Wanted to choose members based on their age group using XLSForm

Hi,
I am developing an ODK program where we would ask name, age, and sex of members in a household. Then we would like to ask questions to those members who are of age between 10 and 15 years of age.

For the first part, we can use 'Begin repeat' command and get name, age and sex. In the second part, I am finding problem how to filter those members who qualify age >= 10 and age <= 15. Also, how to refer the same set of people.

I can send a small program and send, if any one wants to get more detail.

Any suggestion will be highly appreciated.

Thanks,

Surajit

Thanks

··· On Monday, August 17, 2015 at 5:10:06 PM UTC-4, sbaru...@gmail.com wrote: > > Hi, > I am developing an ODK program where we would ask name, age, and sex of > members in a household. Then we would like to ask questions to those > members who are of age between 10 and 15 years of age. > > For the first part, we can use 'Begin repeat' command and get name, age > and sex. In the second part, I am finding problem how to filter those > members who qualify age >= 10 and age <= 15. Also, how to refer the same > set of people. > > I can send a small program and send, if any one wants to get more detail. > > Any suggestion will be highly appreciated. > > Thanks, > > Surajit > > >

Yaw,

Thanks. I have already tried with the indexed-repeat() explained in ODK
website, my issue is relating to getting the index for indexed-repeat()
when we are using repeat command.

Can anyone please suggest where to find examples using indexed-repeat.

Surajit

··· On Monday, August 17, 2015 at 5:10:06 PM UTC-4, sbaru...@gmail.com wrote: > > Hi, > I am developing an ODK program where we would ask name, age, and sex of > members in a household. Then we would like to ask questions to those > members who are of age between 10 and 15 years of age. > > For the first part, we can use 'Begin repeat' command and get name, age > and sex. In the second part, I am finding problem how to filter those > members who qualify age >= 10 and age <= 15. Also, how to refer the same > set of people. > > I can send a small program and send, if any one wants to get more detail. > > Any suggestion will be highly appreciated. > > Thanks, > > Surajit > > >

Surajit,

Look into the indexed-repeat() command. Use
https://opendatakit.org/help/form-design/binding as a reference and
search the forum for examples.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Mon, Aug 17, 2015 at 5:01 PM, sbaruah2014@gmail.com wrote:

Hi,
I am developing an ODK program where we would ask name, age, and sex of members in a household. Then we would like to ask questions to those members who are of age between 10 and 15 years of age.

For the first part, we can use 'Begin repeat' command and get name, age and sex. In the second part, I am finding problem how to filter those members who qualify age >= 10 and age <= 15. Also, how to refer the same set of people.

I can send a small program and send, if any one wants to get more detail.

Any suggestion will be highly appreciated.

Thanks,

Surajit

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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

Thanks Swapnil.

In a repeat loop, the constraint (${age}>=10 and ${age}<=15) works well as
${age} is a age of the current member. My query was, after we read name,
age, sex of members of a household, we want to get some more information
based on their age. That means, we perform second repeat loop. In the
second loop how we are referring the members that we already collected.

Not getting a solution, how to read the members name, age in the second
loop.

Surajit

··· On Monday, August 17, 2015 at 5:10:06 PM UTC-4, sbaru...@gmail.com wrote: > > Hi, > I am developing an ODK program where we would ask name, age, and sex of > members in a household. Then we would like to ask questions to those > members who are of age between 10 and 15 years of age. > > For the first part, we can use 'Begin repeat' command and get name, age > and sex. In the second part, I am finding problem how to filter those > members who qualify age >= 10 and age <= 15. Also, how to refer the same > set of people. > > I can send a small program and send, if any one wants to get more detail. > > Any suggestion will be highly appreciated. > > Thanks, > > Surajit > > >

*You can use * (${age}>=10 and ${age}<=15) in relevant field.

Thanks & Regards,

Swapnil Agarwal

Co-Founder | Director

Dhwani Rural Information Systems Pvt. Ltd.

Phone +91-9099067758/+91-8899635577 | Work email: swapnil@dhwaniris.com

Web: http://www.dhwaniris.com/ http://www.dhwaniris.com/

P

Please don't print this e-mail unless you really need to

··· On Fri, Aug 21, 2015 at 8:04 AM, Surajit Baruah wrote:

Yaw,

Thanks. I have already tried with the indexed-repeat() explained in ODK
website, my issue is relating to getting the index for indexed-repeat()
when we are using repeat command.

Can anyone please suggest where to find examples using indexed-repeat.

Surajit

On Monday, August 17, 2015 at 5:10:06 PM UTC-4, sbaru...@gmail.com wrote:

Hi,
I am developing an ODK program where we would ask name, age, and sex of
members in a household. Then we would like to ask questions to those
members who are of age between 10 and 15 years of age.

For the first part, we can use 'Begin repeat' command and get name, age
and sex. In the second part, I am finding problem how to filter those
members who qualify age >= 10 and age <= 15. Also, how to refer the same
set of people.

I can send a small program and send, if any one wants to get more detail.

Any suggestion will be highly appreciated.

Thanks,

Surajit

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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

Try RTA Survey (based on ODK Collect). If you need it urgently, we can provide a support session via Skype.