Household Surveys

Dear Developers,

I am trying out the ODK Survey v2 beta 1 and have run into some problems.

I uploaded the sample forms to and aggregate server as indicated in the
instructions. Had the xml files and the formid-media files saved onto
the server. I am able to download them onto my devices but for some reason
the flow of the questions especially the Household Form is not proper. The
household questions work fine but when it is supposed to call the other two
forms( household_member and education), the choice/options for selection do
not appear.

The sub-forms education.xml and member.xml forms are in the same
directory as the *household_new.xml *as instructed here:
http://opendatakit.org/use/2_0_tools/odk-application-designer-2-0-alpha-1/odk-legacy-xml-2-0-alpha-1/

Is there a way to go about this to ensure that the forms are executed
within the parent form (Household_new).

Thanks,
Wycliffe.

At the moment, the 'list-of-forms' screen in Survey is just a list of all
available forms.

In contrast, in the Application Designer, the list is managed by the
framework.xlsx file and its generated formDef.json.

The plan is to have that same functionality available as a settings option
on Survey. I.e., you can choose to either
display all available forms, or choose to use a special framework form as
your 'list-of-forms' screen.

When that happens (we need to move the framework.xlsx and formDef.json into
the assets directory...), then, yes,
you will then be able restrict the set of displayed forms to just the set
of forms you want the user to use.

Furthermore, by using session variables (variables not persisted to the
database), you will also be able to have this
initial form ask questions that might filter or alter what set of forms you
present to the user (e.g., you could ask for a
secret code, or test the user's e-mail account name, and, if the user
entered the code correctly, or had a designated
administrator's e-mail account, have this framework form display
administrative forms).

ยทยทยท ---------------------- Note that the described process is for creating the legacy XML stubs. On the device itself, after the download, the layout is:

/sdcard/opendatakit/survey/tables/table_id/forms/form_id/formDef.json

The legacy XML integration is to:

(1) place everything that you had under .../form_id/ into a directory
'form_id-media', generate the XML so that you have

form_id.xml
form_id-media/....

then upload this to the server.

And downloading from the server to the device will place them in the
aforementioned layout:

/sdcard/opendatakit/survey/tables/table_id/forms/form_id/formDef.json

On Thu, Jun 5, 2014 at 4:02 AM, Wycliffe Odongo odongow@gmail.com wrote:

Dear Developers,

I am trying out the ODK Survey v2 beta 1 and have run into some problems.

I uploaded the sample forms to and aggregate server as indicated in the
instructions. Had the xml files and the formid-media files saved onto
the server. I am able to download them onto my devices but for some reason
the flow of the questions especially the Household Form is not proper. The
household questions work fine but when it is supposed to call the other two
forms( household_member and education), the choice/options for selection do
not appear.

The sub-forms education.xml and member.xml forms are in the same
directory as the *household_new.xml *as instructed here:
http://opendatakit.org/use/2_0_tools/odk-application-designer-2-0-alpha-1/odk-legacy-xml-2-0-alpha-1/

Is there a way to go about this to ensure that the forms are executed
within the parent form (Household_new).

Thanks,
Wycliffe.

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

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

Dear Mitch,

I am trying to work out a household survey (on ODK Survey) but I keep
running into this error:

"Error while accessing or saving values to the database".

It occurs when I add more questions to the form. Apparently the forms work
well when there are only very few questions.

attached is the xls form and the corresponding JSON file.

Please help me understand what the problem could be.

Thanks.

formDef.json (21.9 KB)

test3.xlsx (10.5 KB)