Using data collected from repeat

Hi list.

How, if it's possible, to use the data collected from a repeat (for
example, a list of names and birthdays) as select options in
a succeeding question?

Best,

Nik

I do not know the answer, so I suggest trying it to see if it works.

I have a feeling JavaRosa might have a problem because you can't
access data from a repeat outside the repeat
because I think JavaRosa doesn't know which answer you are pointing to.
http://groups.google.com/group/opendatakit/browse_thread/thread/7eb5ca7e5944fef3/d4a4805d83975435

Has anyone on the list had success accessing repeat data outside of the repeat?

Waylon

··· On Fri, Jul 6, 2012 at 2:42 AM, ゴー・ニコライ wrote: > Hi list. > > How, if it's possible, to use the data collected from a repeat (for example, > a list of names and birthdays) as select options in a succeeding question? > > Best, > > Nik > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en

To echo what Waylon said, I'm not 100% but my layman's understanding is
that because you don't know ahead of time what the binding will be for the
individual repeat data then you can't reference it outside of the repeat
group.

I think you can reference data inside of the repeat if that helps.

e.g.
Question A
repeat group start
Question B1
Question B2
Question B3 - is the sum of B1&B2 <- works
repeat group end
Question C - is the sum of all B1s <- does not work

I think it would be useful if it did though!

··· On Fri, Jul 6, 2012 at 12:47 PM, W. Brunette wrote:

I do not know the answer, so I suggest trying it to see if it works.

I have a feeling JavaRosa might have a problem because you can't
access data from a repeat outside the repeat
because I think JavaRosa doesn't know which answer you are pointing to.

http://groups.google.com/group/opendatakit/browse_thread/thread/7eb5ca7e5944fef3/d4a4805d83975435

Has anyone on the list had success accessing repeat data outside of the
repeat?

Waylon

On Fri, Jul 6, 2012 at 2:42 AM, ゴー・ニコライ nikolai.go@gmail.com wrote:

Hi list.

How, if it's possible, to use the data collected from a repeat (for
example,
a list of names and birthdays) as select options in a succeeding
question?

Best,

Nik

--
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

Thank you for your replies. I did try it but as pointed out by Sarah, it
doesn't work, and I thought I made some mistake trying to access it.

It would be very useful if it was supported. I could see scenarios where
interviewers could save time not having to re-input the same things all
over.

Best,
Nik

··· On Saturday, July 7, 2012, Sarah Bird wrote:

To echo what Waylon said, I'm not 100% but my layman's understanding is
that because you don't know ahead of time what the binding will be for the
individual repeat data then you can't reference it outside of the repeat
group.

I think you can reference data inside of the repeat if that helps.

e.g.
Question A
repeat group start
Question B1
Question B2
Question B3 - is the sum of B1&B2 <- works
repeat group end
Question C - is the sum of all B1s <- does not work

I think it would be useful if it did though!

On Fri, Jul 6, 2012 at 12:47 PM, W. Brunette <wbrunette@gmail.com<javascript:_e({}, 'cvml', 'wbrunette@gmail.com');> wrote:

I do not know the answer, so I suggest trying it to see if it works.

I have a feeling JavaRosa might have a problem because you can't
access data from a repeat outside the repeat
because I think JavaRosa doesn't know which answer you are pointing to.

http://groups.google.com/group/opendatakit/browse_thread/thread/7eb5ca7e5944fef3/d4a4805d83975435

Has anyone on the list had success accessing repeat data outside of the
repeat?

Waylon

On Fri, Jul 6, 2012 at 2:42 AM, ゴー・ニコライ <nikolai.go@gmail.com<javascript:_e({}, 'cvml', 'nikolai.go@gmail.com');>> wrote:

Hi list.

How, if it's possible, to use the data collected from a repeat (for
example,
a list of names and birthdays) as select options in a succeeding
question?

Best,

Nik

--
Post: opendatakit@googlegroups.com <javascript:_e({}, 'cvml',
'opendatakit@googlegroups.com');>
Unsubscribe: opendatakit+unsubscribe@googlegroups.com<javascript:_e({}, 'cvml', 'opendatakit%2Bunsubscribe@googlegroups.com');>
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com <javascript:_e({}, 'cvml',
'opendatakit@googlegroups.com');>
Unsubscribe: opendatakit+unsubscribe@googlegroups.com <javascript:_e({},
'cvml', 'opendatakit%2Bunsubscribe@googlegroups.com');>
Options: http://groups.google.com/group/opendatakit?hl=en

--
Post: opendatakit@googlegroups.com <javascript:_e({}, 'cvml',
'opendatakit@googlegroups.com');>
Unsubscribe: opendatakit+unsubscribe@googlegroups.com <javascript:_e({},
'cvml', 'opendatakit%2Bunsubscribe@googlegroups.com');>
Options: http://groups.google.com/group/opendatakit?hl=en

Hi

Does anyone know if this is possible yet? To use the information in a
previous repeat cycle, in my case names of household members, in a later
question as select options. Such that you could ask "Out of the family
members, who does a certain task?"

Many thanks
Carl

··· On Friday, July 6, 2012 11:42:56 AM UTC+2, ニコノコ wrote: > > Hi list. > > How, if it's possible, to use the data collected from a repeat (for > example, a list of names and birthdays) as select options in > a succeeding question? > > Best, > > Nik >

You might want to try joining and posting to the JavaRosa Developers
mailing list to see if they know how or try to push for the feature.
Open Data Kit currently uses the JavaRosa library to maintain
compatibility with other xform projects. Therefore, the change will
need to be made in JavaRosa to support your goals.

JavaRosa Developers List:
https://groups.google.com/group/javarosa-developers

Cheers,
Waylon

··· On Fri, Jul 6, 2012 at 5:26 PM, ゴー・ニコライ wrote: > Thank you for your replies. I did try it but as pointed out by Sarah, it > doesn't work, and I thought I made some mistake trying to access it. > > It would be very useful if it was supported. I could see scenarios where > interviewers could save time not having to re-input the same things all > over. > > Best, > Nik > > > On Saturday, July 7, 2012, Sarah Bird wrote: >> >> To echo what Waylon said, I'm not 100% but my layman's understanding is >> that because you don't know ahead of time what the binding will be for the >> individual repeat data then you can't reference it outside of the repeat >> group. >> >> I think you can reference data inside of the repeat if that helps. >> >> e.g. >> Question A >> repeat group start >> Question B1 >> Question B2 >> Question B3 - is the sum of B1&B2 <- works >> repeat group end >> Question C - is the sum of all B1s <- does not work >> >> I think it would be useful if it did though! >> >> On Fri, Jul 6, 2012 at 12:47 PM, W. Brunette wrote: >>> >>> I do not know the answer, so I suggest trying it to see if it works. >>> >>> I have a feeling JavaRosa might have a problem because you can't >>> access data from a repeat outside the repeat >>> because I think JavaRosa doesn't know which answer you are pointing to. >>> >>> http://groups.google.com/group/opendatakit/browse_thread/thread/7eb5ca7e5944fef3/d4a4805d83975435 >>> >>> Has anyone on the list had success accessing repeat data outside of the >>> repeat? >>> >>> Waylon >>> >>> On Fri, Jul 6, 2012 at 2:42 AM, ゴー・ニコライ wrote: >>> > Hi list. >>> > >>> > How, if it's possible, to use the data collected from a repeat (for >>> > example, >>> > a list of names and birthdays) as select options in a succeeding >>> > question? >>> > >>> > Best, >>> > >>> > Nik >>> > >>> > -- >>> > 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 >> >> >> -- >> 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

Thank you Waylon.

In the meantime, could anyone suggest any technique on how to go about
something like this with what we have right now?

··· On Saturday, July 7, 2012, W. Brunette wrote:

You might want to try joining and posting to the JavaRosa Developers
mailing list to see if they know how or try to push for the feature.
Open Data Kit currently uses the JavaRosa library to maintain
compatibility with other xform projects. Therefore, the change will
need to be made in JavaRosa to support your goals.

JavaRosa Developers List:
https://groups.google.com/group/javarosa-developers

Cheers,
Waylon

On Fri, Jul 6, 2012 at 5:26 PM, ゴー・ニコライ nikolai.go@gmail.com wrote:

Thank you for your replies. I did try it but as pointed out by Sarah, it
doesn't work, and I thought I made some mistake trying to access it.

It would be very useful if it was supported. I could see scenarios where
interviewers could save time not having to re-input the same things all
over.

Best,
Nik

On Saturday, July 7, 2012, Sarah Bird wrote:

To echo what Waylon said, I'm not 100% but my layman's understanding is
that because you don't know ahead of time what the binding will be for
the
individual repeat data then you can't reference it outside of the repeat
group.

I think you can reference data inside of the repeat if that helps.

e.g.
Question A
repeat group start
Question B1
Question B2
Question B3 - is the sum of B1&B2 <- works
repeat group end
Question C - is the sum of all B1s <- does not work

I think it would be useful if it did though!

On Fri, Jul 6, 2012 at 12:47 PM, W. Brunette wbrunette@gmail.com wrote:

I do not know the answer, so I suggest trying it to see if it works.

I have a feeling JavaRosa might have a problem because you can't
access data from a repeat outside the repeat
because I think JavaRosa doesn't know which answer you are pointing to.

http://groups.google.com/group/opendatakit/browse_thread/thread/7eb5ca7e5944fef3/d4a4805d83975435

Has anyone on the list had success accessing repeat data outside of the
repeat?

Waylon

On Fri, Jul 6, 2012 at 2:42 AM, ゴー・ニコライ nikolai.go@gmail.com wrote:

Hi list.

How, if it's possible, to use the data collected from a repeat (for
example,
a list of names and birthdays) as select options in a succeeding
question?

Best,

Nik

--
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

--
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

Carl,

See indexed-repeat() at
http://opendatakit.org/help/form-design/binding for how to pull out a
value from a previous interation.

As to loading it into a select option, you have to be clever with
concat to build the values into a space separated list.

Yaw

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

On Mon, May 19, 2014 at 12:46 PM, Carl Timler carl.timler@gmail.com wrote:

Hi

Does anyone know if this is possible yet? To use the information in a
previous repeat cycle, in my case names of household members, in a later
question as select options. Such that you could ask "Out of the family
members, who does a certain task?"

Many thanks
Carl

On Friday, July 6, 2012 11:42:56 AM UTC+2, ニコノコ wrote:

Hi list.

How, if it's possible, to use the data collected from a repeat (for
example, a list of names and birthdays) as select options in a succeeding
question?

Best,

Nik

--

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.

Carl,

See indexed-repeat() at

http://opendatakit.org/help/form-design/binding for how to pull out a

value from a previous interation.

As to loading it into a select option, you have to be clever with

concat to build the values into a space separated list.

Yaw

--

Need ODK services? http://nafundi.com provides form design, server

setup, professional support, and software development for ODK.

Hi

Does anyone know if this is possible yet? To use the information in a

previous repeat cycle, in my case names of household members, in a later

question as select options. Such that you could ask "Out of the family

members, who does a certain task?"

Many thanks

Carl

Hi list.

How, if it's possible, to use the data collected from a repeat (for

example, a list of names and birthdays) as select options in a succeeding

question?

Best,

Nik

--

--

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.

Is it possible to get a sample xls form with the use of indexed-repeat implemented. I would like to go through one.

··· On Tuesday, May 20, 2014 1:54:43 AM UTC+3, Yaw Anokwa wrote: > On Mon, May 19, 2014 at 12:46 PM, Carl Timler wrote: > > On Friday, July 6, 2012 11:42:56 AM UTC+2, ニコノコ wrote:

Beginning with ODK Collect 1.4.3, I believe you should also be able to do
something like this:

if( position(current()/..) = 1, 'no data yet',
/data/repeater[position(.)=position(current()/..)-1]/value )

from

/data/repeater[2]/value

to access

/data/repeater[1]/value

and, from the first value, it would report 'no data yet'

But I haven't actually tested that...

··· On Tue, May 20, 2014 at 5:01 AM, wrote:

On Tuesday, May 20, 2014 1:54:43 AM UTC+3, Yaw Anokwa wrote:

Carl,

See indexed-repeat() at

http://opendatakit.org/help/form-design/binding for how to pull out a

value from a previous interation.

As to loading it into a select option, you have to be clever with

concat to build the values into a space separated list.

Yaw

--

Need ODK services? http://nafundi.com provides form design, server

setup, professional support, and software development for ODK.

On Mon, May 19, 2014 at 12:46 PM, Carl Timler carl.timler@gmail.com wrote:

Hi

Does anyone know if this is possible yet? To use the information in a

previous repeat cycle, in my case names of household members, in a
later

question as select options. Such that you could ask "Out of the family

members, who does a certain task?"

Many thanks

Carl

On Friday, July 6, 2012 11:42:56 AM UTC+2, ニコノコ wrote:

Hi list.

How, if it's possible, to use the data collected from a repeat (for

example, a list of names and birthdays) as select options in a
succeeding

question?

Best,

Nik

--

--

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.

Is it possible to get a sample xls form with the use of indexed-repeat
implemented. I would like to go through one.

--

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.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com