.xls repeat group retaining value in later iterations

Hi there,

I'm new to all this ODK business and am scratching my head over an issue in creating an .xls file.

I have a repeat group which contains a series of fields. I'd ideally like to have one or more of the fields retain their value for later iterations.

Let's assume there are three layers of data. Island name, forest names and tree types, where 'forest name' information, including tree types which fall under it, is a repeat group.

So island name -> forest name -> tree type.

For example: Paradise (island) -> Black Forest(forest) -> Palm (tree type).

Assuming there are multiple tree types in the same forest, I'd like the application to allow repeated forest name entries, followed by tree types.

For example: Paradise -> Black Forest -> Palm (Prompt add more forests? y/n -> if yes) Black Forest -> Pine.

In the above example, how could I have 'Black Forest' be recalled from memory after being entered each time the user attempts to add an additional tree type? Is this possible?

Alternatively, if this is a logic issue and could be handled in a more efficient way, I'd appreciate that solution as well. I've attempted a repeat group (tree type) within a repeat group (forest name), but this has resulted in an error when attempting to convert to .xml to test with Enketo.

Is there perhaps an alternative solution if neither of these procedures are currently supported?

Apologies for what might possibly be a long-winded question.

Thanks for your time.

It sounds like you want three nested repeat groups

repeat group -- islands
Q: what is the name of the island
repeat group -- forests on this island
Q: what is the name of the forest being examined
repeat groups -- type of tree in forest
Q: enter the type of tree
questions about that tree type

So the add group prompt after you answered questions about a specific tree
type would ask whether to add

  • another tree type
  • another forest
  • another island

I.e., the answers to the tree type questions are specific to the particular
forest.

ยทยทยท On Tue, Sep 16, 2014 at 7:14 AM, Sam wrote:

Hi there,

I'm new to all this ODK business and am scratching my head over an issue
in creating an .xls file.

I have a repeat group which contains a series of fields. I'd ideally like
to have one or more of the fields retain their value for later iterations.

Let's assume there are three layers of data. Island name, forest names and
tree types, where 'forest name' information, including tree types which
fall under it, is a repeat group.

So island name -> forest name -> tree type.

For example: Paradise (island) -> Black Forest(forest) -> Palm (tree type).

Assuming there are multiple tree types in the same forest, I'd like the
application to allow repeated forest name entries, followed by tree types.

For example: Paradise -> Black Forest -> Palm (Prompt add more forests?
y/n -> if yes) Black Forest -> Pine.

In the above example, how could I have 'Black Forest' be recalled from
memory after being entered each time the user attempts to add an additional
tree type? Is this possible?

Alternatively, if this is a logic issue and could be handled in a more
efficient way, I'd appreciate that solution as well. I've attempted a
repeat group (tree type) within a repeat group (forest name), but this has
resulted in an error when attempting to convert to .xml to test with Enketo.

Is there perhaps an alternative solution if neither of these procedures
are currently supported?

Apologies for what might possibly be a long-winded question.

Thanks for your time.

--

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