Documentation

Dear ODK Implementers,

I just started building my own forms for ODK, and I've been using the
documentation mentioned in http://code.google.com/p/opendatakit/wiki/FrequentlyAskedQuestions
. Does anyone on the list have other sources they like using? I'm
trying to figure out if the two JavaRosa pages fully describe the
xform features supported by ODK.

I'm trying to write a demography survey where I do the following:

  1. Record the names of all the members of a household.
  2. For each household member ask a group of questions (how old are
    you? ...).

From what I've read if I use a repeat loop to execute step 1, I won't
be able to use the results from step 1 to feed the loop in step 2. Is
that correct or am I underestimating the power of xpath expressions?

Thanks for the help, Andrew

The examples of this that I have seen are structured to ask whether you want
to record information for a new household member, and then ask for the name
of the household member as part of the single repeating group of questions
specific to a household member. i.e., they don't first collect the names
then go back and collect additional information for each named individual.

Looking forward to what others say... .

Mitch

··· On Mon, Jun 28, 2010 at 11:02 AM, Andrew Marder wrote:

Dear ODK Implementers,

I just started building my own forms for ODK, and I've been using the
documentation mentioned in
http://code.google.com/p/opendatakit/wiki/FrequentlyAskedQuestions
. Does anyone on the list have other sources they like using? I'm
trying to figure out if the two JavaRosa pages fully describe the
xform features supported by ODK.

I'm trying to write a demography survey where I do the following:

  1. Record the names of all the members of a household.
  2. For each household member ask a group of questions (how old are
    you? ...).

From what I've read if I use a repeat loop to execute step 1, I won't
be able to use the results from step 1 to feed the loop in step 2. Is
that correct or am I underestimating the power of xpath expressions?

Thanks for the help, Andrew

I "solved" my problem. I wrote a python script that interprets a
properly formatted excel file and spits out an xform for ODK. If
you're interested try using this xform in ODK Collect:

http://github.com/amarder/xls2xform/blob/master/Loop.xml

It collects names (up to 25) until an empty name is entered, and then
it asks a bunch of directed questions for each name. I'd be interested
to hear what you think about this brute force approach. I've noticed
that when I go back to edit incomplete surveys the groups are not
displayed as nicely as when I was using s. I'd love to get
feedback / help.

Andrew

PS I printed the xform in one long line because toprettyxml from
xml.dom.minidom has some spacing issues.

··· On Jun 29, 7:08 pm, Mitchell Sundt wrote: > The examples of this that I have seen are structured to ask whether you want > to record information for a new household member, and then ask for the name > of the household member as part of the single repeating group of questions > specific to a household member. i.e., they don't first collect the names > then go back and collect additional information for each named individual. > > Looking forward to what others say... . > > Mitch > > On Mon, Jun 28, 2010 at 11:02 AM, Andrew Marder wrote: > > > > > Dear ODK Implementers, > > > I just started building my own forms for ODK, and I've been using the > > documentation mentioned in > >http://code.google.com/p/opendatakit/wiki/FrequentlyAskedQuestions > > . Does anyone on the list have other sources they like using? I'm > > trying to figure out if the two JavaRosa pages fully describe the > > xform features supported by ODK. > > > I'm trying to write a demography survey where I do the following: > > 1. Record the names of all the members of a household. > > 2. For each household member ask a group of questions (how old are > > you? ...). > > > From what I've read if I use a repeat loop to execute step 1, I won't > > be able to use the results from step 1 to feed the loop in step 2. Is > > that correct or am I underestimating the power of xpath expressions? > > > Thanks for the help, Andrew