How can I convert my xform or xlsform to json form

How Can I convert my xform or xlstform to json from using ODK. Is it
possible?

Thanks in advance.

Hamayun,

It's not clear why you'd want a JSON version of the form. What high
level goal are you trying to accomplish?

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Sun, Jun 15, 2014 at 5:37 AM, Hamayun Khan hkhan@immap.org wrote:

How Can I convert my xform or xlstform to json from using ODK. Is it
possible?

Thanks in advance.

--

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.

I look into enketo and other links but fail to solve. I need to get the
labels for input fields to show in header of databrowser. Any one can help

··· On Sunday, June 15, 2014 5:37:54 PM UTC+5, Hamayun Khan wrote: > > How Can I convert my xform or xlstform to json from using ODK. Is it > possible? > > Thanks in advance. >

In actual I want to read the labels for the input fields for my offline
dataentry software. At some place I see a json form of xform which was much
helpfull in my case but I am not sure If I have to do my own programming or
ODK will support me in this case. either get my json form or directly
reterive labels for my fields.

··· On Sunday, June 15, 2014 7:52:57 PM UTC+5, Yaw Anokwa wrote: > > Hamayun, > > It's not clear why you'd want a JSON version of the form. What high > level goal are you trying to accomplish? > > Yaw > -- > Need ODK services? http://nafundi.com provides form design, server > setup, professional support, and software development for ODK. > > On Sun, Jun 15, 2014 at 5:37 AM, Hamayun Khan <hk...@immap.org > wrote: > > How Can I convert my xform or xlstform to json from using ODK. Is it > > possible? > > > > Thanks in advance. > > > > -- > > -- > > Post: opend...@googlegroups.com > > Unsubscribe: opendatakit...@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...@googlegroups.com . > > For more options, visit https://groups.google.com/d/optout. >

If you are trying to get the display names for the choices in your
selection lists, see

https://groups.google.com/forum/#!searchin/opendatakit/Stata/opendatakit/CUctlo9nVkk/0zPvtwN4awAJ

Mitch

··· On Tue, Jun 17, 2014 at 12:32 AM, Hamayun Khan wrote:

I look into enketo and other links but fail to solve. I need to get the
labels for input fields to show in header of databrowser. Any one can help

On Sunday, June 15, 2014 5:37:54 PM UTC+5, Hamayun Khan wrote:

How Can I convert my xform or xlstform to json from using ODK. Is it
possible?

Thanks in advance.

--

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

Hamayun,

None of the core ODK tools expose the form spec (which has the labels)
via JSON. A few alternatives come to mind...

  1. Formhub converts XLSForms to an internal JSON format, so you can
    try looking at that code base at
    https://github.com/SEL-Columbia/formhub.

  2. You can also look at Enketo's core at
    https://github.com/MartijnR/enketo-core. I think there is some XForm
    to JSON code there too.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Sun, Jun 15, 2014 at 8:04 AM, Hamayun Khan hkhan@immap.org wrote:

In actual I want to read the labels for the input fields for my offline
dataentry software. At some place I see a json form of xform which was much
helpfull in my case but I am not sure If I have to do my own programming or
ODK will support me in this case. either get my json form or directly
reterive labels for my fields.

On Sunday, June 15, 2014 7:52:57 PM UTC+5, Yaw Anokwa wrote:

Hamayun,

It's not clear why you'd want a JSON version of the form. What high
level goal are you trying to accomplish?

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Sun, Jun 15, 2014 at 5:37 AM, Hamayun Khan hk...@immap.org wrote:

How Can I convert my xform or xlstform to json from using ODK. Is it
possible?

Thanks in advance.

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

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.

If you upload an xlsform into Formhub. On the form page it'll give you the
option to export the form definition in both xform and json.

Matt

··· On Tue, Jun 17, 2014 at 11:08 PM, Mitch Sundt wrote:

If you are trying to get the display names for the choices in your
selection lists, see

https://groups.google.com/forum/#!searchin/opendatakit/Stata/opendatakit/CUctlo9nVkk/0zPvtwN4awAJ

Mitch

On Tue, Jun 17, 2014 at 12:32 AM, Hamayun Khan hkhan@immap.org wrote:

I look into enketo and other links but fail to solve. I need to get the
labels for input fields to show in header of databrowser. Any one can help

On Sunday, June 15, 2014 5:37:54 PM UTC+5, Hamayun Khan wrote:

How Can I convert my xform or xlstform to json from using ODK. Is it
possible?

Thanks in advance.

--

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

--

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.

Thanks, I will look into all these.

··· On Sunday, June 15, 2014 8:14:17 PM UTC+5, Yaw Anokwa wrote: > > Hamayun, > > None of the core ODK tools expose the form spec (which has the labels) > via JSON. A few alternatives come to mind... > > 1. Formhub converts XLSForms to an internal JSON format, so you can > try looking at that code base at > https://github.com/SEL-Columbia/formhub. > > 2. You can also look at Enketo's core at > https://github.com/MartijnR/enketo-core. I think there is some XForm > to JSON code there too. > > Yaw > -- > Need ODK services? http://nafundi.com provides form design, server > setup, professional support, and software development for ODK. > > > > On Sun, Jun 15, 2014 at 8:04 AM, Hamayun Khan <hk...@immap.org > wrote: > > In actual I want to read the labels for the input fields for my offline > > dataentry software. At some place I see a json form of xform which was > much > > helpfull in my case but I am not sure If I have to do my own programming > or > > ODK will support me in this case. either get my json form or directly > > reterive labels for my fields. > > > > > > On Sunday, June 15, 2014 7:52:57 PM UTC+5, Yaw Anokwa wrote: > >> > >> Hamayun, > >> > >> It's not clear why you'd want a JSON version of the form. What high > >> level goal are you trying to accomplish? > >> > >> Yaw > >> -- > >> Need ODK services? http://nafundi.com provides form design, server > >> setup, professional support, and software development for ODK. > >> > >> On Sun, Jun 15, 2014 at 5:37 AM, Hamayun Khan wrote: > >> > How Can I convert my xform or xlstform to json from using ODK. Is it > >> > possible? > >> > > >> > Thanks in advance. > >> > > >> > -- > >> > -- > >> > Post: opend...@googlegroups.com > >> > Unsubscribe: opendatakit...@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...@googlegroups.com. > >> > For more options, visit https://groups.google.com/d/optout. > > > > -- > > -- > > Post: opend...@googlegroups.com > > Unsubscribe: opendatakit...@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...@googlegroups.com . > > For more options, visit https://groups.google.com/d/optout. >

In scanning the ODK documentation, you likely confused the ODK 1.x tools
with the ODK 2.0 tools.

ODK 1.x tools use XML as their intermediate representation.

ODK 2.0 tools use JSON.

The XLS files share similarities, but these are best thought of as two
independent sets of tools. In software, an integer step in version (e.g.,
Windows 7 to Windows 8) indicates a non-automatically-compatible change of
functionality. This is why we are starting a 2.0 set of tools -- they work
differently from the 1.x tools and are not automatically compatible with
them.

··· On Sun, Jun 15, 2014 at 10:09 AM, Hamayun Khan wrote:

Thanks, I will look into all these.

On Sunday, June 15, 2014 8:14:17 PM UTC+5, Yaw Anokwa wrote:

Hamayun,

None of the core ODK tools expose the form spec (which has the labels)
via JSON. A few alternatives come to mind...

  1. Formhub converts XLSForms to an internal JSON format, so you can
    try looking at that code base at
    https://github.com/SEL-Columbia/formhub.

  2. You can also look at Enketo's core at
    https://github.com/MartijnR/enketo-core. I think there is some XForm
    to JSON code there too.

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Sun, Jun 15, 2014 at 8:04 AM, Hamayun Khan hk...@immap.org wrote:

In actual I want to read the labels for the input fields for my offline
dataentry software. At some place I see a json form of xform which was
much
helpfull in my case but I am not sure If I have to do my own
programming or
ODK will support me in this case. either get my json form or directly
reterive labels for my fields.

On Sunday, June 15, 2014 7:52:57 PM UTC+5, Yaw Anokwa wrote:

Hamayun,

It's not clear why you'd want a JSON version of the form. What high
level goal are you trying to accomplish?

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Sun, Jun 15, 2014 at 5:37 AM, Hamayun Khan hk...@immap.org wrote:

How Can I convert my xform or xlstform to json from using ODK. Is it
possible?

Thanks in advance.

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

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