[ODK Community] suggestion for ODK validate

Lu,

This is not particularly easy to do programmatically. I've filed a bug
at https://code.google.com/p/opendatakit/issues/detail?id=834. Perhaps
someone from the community can submit a patch.

Yaw

··· -- Need ODK help? Go to http://nafundi.com for custom features, form design, implementation support, and user training for ODK.

On Fri, May 24, 2013 at 5:46 AM, tclucretius@gmail.com wrote:

Hi there,

in my latest version of ODK validate (V. 1.2.3 for ODK Collect 1.2), variables inside constraint= and relevant= and calculate= clauses are not checked for existence. Is there a version of Validate coming out soon that does this work? It is rather time consuming to go through every relevant= clause and check that all the variables have been spelt correctly.

Best,

Lu

--

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.

Yes, Validate began as a quick-and-dirty tool that confirms that the form
definition file can be parsed.

A second pass was added to verify that all select-one and select-multiple
question choices had values, but little else is done to verify the validity
of the expressions.

Checking that the variable exists would be a useful addition. The reason it
isn't detected is because these are treated as opaque XPath expressions,
and no check is made to ensure that they reference an element within the
form definition (no-value and does-not-exist are not distinguished).

Mitch

··· On Sun, May 26, 2013 at 6:21 PM, Yaw Anokwa wrote:

Lu,

This is not particularly easy to do programmatically. I've filed a bug
at https://code.google.com/p/opendatakit/issues/detail?id=834. Perhaps
someone from the community can submit a patch.

Yaw

Need ODK help? Go to http://nafundi.com for custom features, form
design, implementation support, and user training for ODK.

On Fri, May 24, 2013 at 5:46 AM, tclucretius@gmail.com wrote:

Hi there,

in my latest version of ODK validate (V. 1.2.3 for ODK Collect 1.2),
variables inside constraint= and relevant= and calculate= clauses are not
checked for existence. Is there a version of Validate coming out soon that
does this work? It is rather time consuming to go through every relevant=
clause and check that all the variables have been spelt correctly.

Best,

Lu

--

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.

--

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.

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