Embeding GPS

Good day ODK Team/Community,

Am in dire need of your help.

  1. How can I have in my xml code a hidden GPS tracker on the form to be use
    with the ODK Collect? The idea was to make GPS hidden from collectors and
    not to require their input but to automatically capture their location
    where form is filled/opened/submitted.

  2. How can I code my xml metadata to capture datetime / timestamps only
    when form is submitted?

  3. How can I make a form to have a different pre-filled data (string and
    integer) in it each time it is opened? The idea was to have the label/field
    already caring data(s) while collectors don't have to type it.

  4. How can I make my form to have an integer data type constraint and to
    accept exactly 7 digits?

Thanks

··· -- Junaid Olubunmi
  1. we don't support this; it would require some customization. A big issue
    is that by requiring that GPS coordinates are always available, you require
    that the GPS detection system be always active, which can be a significant
    drain on your battery. Also, GPS generally doesn't work inside a building,
    so capturing the GPS in the background would have to deal with the
    possibility of that data not being available.

  2. submission times are not captured in the form (they are really a
    function of the server's state); there are startTime and endTime properties
    that record when a form is first created and when it is last finalized (
    http://opendatakit.org/help/form-design/examples/#preload_params ). The ODK
    Aggregate server, does, however, track both the submission time (when the
    record was first created on the server) and the marked-as-complete time
    (when all the supporting media attachments for the submission were
    successfully uploaded).

  3. there are various tools people have written to do this, but this is not
    part of the core ODK 1.x toolset. We are building ODK 2.0 tools that are
    entirely designed around this need, but those are not yet production-ready.
    You may want to speak with CTOSurvey or look at other systems built on top
    of ODK ( http://opendatakit.org/help/help-for-hire/ ). ODK Clinic (a
    project that is not actively supported) is another example with the 1.x
    tools.

  4. You may want to use a string field with a numeric appearance
    http://opendatakit.org/help/form-design/examples/#numeric_string

Then you could apply a length constraint:

string-length(.) = 7

And if you needed to manipulate this as an integer or number, you can use
the conversion routines to do that

··· ------- Mitch

On Thu, Jan 16, 2014 at 6:34 AM, Olubunmi Junaid mail2bunmi@gmail.comwrote:

Good day ODK Team/Community,

Am in dire need of your help.

  1. How can I have in my xml code a hidden GPS tracker on the form to be
    use with the ODK Collect? The idea was to make GPS hidden from collectors
    and not to require their input but to automatically capture their location
    where form is filled/opened/submitted.

  2. How can I code my xml metadata to capture datetime / timestamps only
    when form is submitted?

  3. How can I make a form to have a different pre-filled data (string and
    integer) in it each time it is opened? The idea was to have the label/field
    already caring data(s) while collectors don't have to type it.

  4. How can I make my form to have an integer data type constraint and to
    accept exactly 7 digits?

Thanks

Junaid Olubunmi

--

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

Thanks Mitch for your positive response.

Am now okay with start and end timestamps but on "How can I make my form to
have an integer data type constraint and to accept exactly 7 digits? - I
still have issue following your direction.

I have in my binding:

and have declared in the body:

With this, field accepts
far more than 7 integers. Infact, like its going unlimited.

Meanwhile, field accepts max of 9 integers with:

I even tried:

It throws error uploading to aggregate.

Kindly help.

n 1.4, there is a new setting under General Settings that may be causing
this behavior:

Constraint processing behavior:

  • Validate upon forward swipe
  • Defer validation until finalized

Be sure the 'Validate upon forward swipe' is selected.

Mitch

··· On Fri, Jan 17, 2014 at 2:39 AM, Olubunmi Junaid wrote:

Thanks Mitch for your positive response.

Am now okay with start and end timestamps but on "How can I make my form
to have an integer data type constraint and to accept exactly 7 digits? - I
still have issue following your direction.

I have in my binding:

and have declared in the body:

With this, field accepts
far more than 7 integers. Infact, like its going unlimited.

Meanwhile, field accepts max of 9 integers with:

I even tried:

It throws error uploading to aggregate.

Kindly help.

--

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