Hi Adam,
By sub forms I just mean repeating groups. All questions within the
"begin repeat", "end repeat". I'm not sure about aggregate or Survey CTO,
and I'm sure there are other servers you could use, but the Smap Server
which is compatible with odkCollect stores uploaded data in a relational
database one table per form / sub-form.
The following link shows how you can use the relational setup when
exporting to spreadsheets.
http://blog.smap.com.au/features/export-reports-to-spreadsheet/. The survey
I reference on that web page is at
https://smap-suite.googlecode.com/files/multi%20repeat.xls
It does sound like ODK Tables 2.0 will help you a lot with completing
large, long running surveys, on your phones but hopefully this helps with
your requirements specifically around handling one to many relationships at
the server side at least.
I have added some comments inline to your email text.
regards
Neil
Hi Neil -
Hmm, perhaps I can use subforms. Could you tell me more about them? I
was unable to find a clear description on how they are working after a
quick search.
Do they function so that a user fills out the parent form, comes to the
child (sub)form and then can complete the child form multiple times saving
a distinct record after each completion?
Yes. If you put your subform / "begin repeat" at the end of your main
form's questions. The sub forms records are part of a single XML results
file on the phone. However on the Smap Server they are stored in their own
relational table which has a parent child relationship to the table storing
the main forms data.
On the backend it would appear that for each row, the parent fields would
be the same (representing survey level data, e.g. site, date, surveyor,
methods, etc.), while each child field would contain a new value as you
moved row to row representing a different observation (age, sex,
coordinate, bearing, distance, etc.) made on that survey?
Yes. as per the web page previously referenced
Is there an example of a XForm using subforms you could post? AS you can
probably guess downloading forms and opening them blindly on FormHub hoping
for one with a subform has not been fruitful.
Link provided.
···
On Thu, Nov 7, 2013 at 12:36 AM, wrote:
Thanks!
Adam
On Tuesday, November 5, 2013 6:00:24 PM UTC-5, Neil Penman wrote:
Hi Adam,
I'm a bit confused. Why can't you use sub forms within a single survey?
Regards
Neil
--
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/groups/opt_out.
--
Smap Consulting http://smap.com.au/| Mobile Data Collection Solutions
Application Developer - neilpenman@gmail.com minqiang.huang@gmail.com
Twitter: @dgmsot
Skype: ianaf4you
Phone: +61 402 975 959
Blog: http://blog.smap.com.au http://smap.com.au/blog