I'd like to create XMLs describing ODK form programmatically using Java. A
quick search didn't bring up anything, so I posting here. Is this possible
with ODK, or more likely JavaRosa? Has anyone done this before or could
point me in the right direction?
I'm not sure I understand your question.
The various form-construction tools (e.g., Build, XLSForm) take
descriptions of a form and emit the XML definition for that description.
If you have a data table and want to emit a form to fill in a row in that
data table, this is what ODK Tables does. The form is constructed
on-the-fly. The code for doing that is here:
Which is called from 2 places in this same file:
If you follow through the code path, this shows how to construct the files,
insert the form definition and instance data file into ODK Collect, launch
ODK Collect, wait for the user to fill in the form, then open and parse the
saved instance data, loading them back into the the data structures within
On Mon, May 20, 2013 at 3:36 PM, Wyler Yerrachione < firstname.lastname@example.org> wrote:
I'd like to create XMLs describing ODK form programmatically using Java.
A quick search didn't bring up anything, so I posting here. Is this
possible with ODK, or more likely JavaRosa? Has anyone done this before or
could point me in the right direction?
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 email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.
University of Washington
We have a situation where our data tables do not precisely describe the way
we want the forms to look - because we want to group certain fields into
groups and present those as individual pages to fit our custom designed
Android app. We have a server backend that uses it's own definition
language, and want to translate these relatively simple form definitions
into XForm xmls, and download them to our devices. Hence, the form
construction tools don't apply so much in this case.
I saw that now open source of GroupInform does contain XForm construction
classes, so this might be a starting point. I'm wondering if other work
has been done in this area. There are surely many systems that could take
advantage of generating XForm compliant XMLs without requiring a user and a
GUI to describe the forms, at least for very basic forms.
Is there any solution for this thread, my requirement is this.
I will get FHIR questionaire json which I have to display using ODK, is there any way to convert FHIR json to ODK form programatically?