Setting form list and upload parameters for connecting ODK Collect to OpenMRS

I download ODK-Collect 1.1.7 and are using the instruccions from OpenMRS to
get the formlist and upload forms (
https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide
)

However, I couldn't get the form list to be downloaded. Our servers form
list is here and it works (the xml is at the end of the email)
http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

So I placed
Protocol OpenRosa 1.0,
Server http://dev.ehs.cl/sisalhttp://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist
the appropriate username and password
Form List Path /moduleServlet/xforms/xformDownload?target=xformslisthttp://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist
or
/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

and when I hit Get Blank Form, it says connecting to server, and then
returns a blank screen almost immediately. I tried connecting to another
server and same thing happens.

Any ideas why this could happen?

Joaquín

<?xml version='1.0' encoding='UTF-8' ?> 2 Formulario de Prueba 3 Indicación de anticonceptivos hormonales o DIU 5 Entrega de Metodo Anticonceptivo ya indicado 6 Consejería en Salud Sexual y Salud Reproductiva 7 Prueba de calcular
··· ___________________________________________________________________ Gerente de Desarrollo, eHealth Systems Research Fellow, Escuela de Medicina de Harvard Moderador, GHDOnline.org

On Thu, Jun 7, 2012 at 5:17 AM, Samuel T. Mbugua sthaiya@gmail.com wrote:

To use collect only and connect to openmrs which has xforms module
installed, this page will guide you on the URLs you need.

https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide

This I tested last with odkCollect version 1.1.6 so not sure whether it
will work with 1.1.7.

Sam

On 06/05/2012 08:01 PM, Joaquín Blaya wrote:

Hey guys,
Just wanted to ping you to see about the ODK Collect/Clinic version that
connects to OpenMRS, any updates?

Thanks,

Joaquín


Gerente de Desarrollo, eHealth Systems http://www.ehs.cl/
Research Fellow, Escuela de Medicina de Harvard http://hms.harvard.edu/
Moderador, GHDOnline.org http://www.ghdonline.org/

Moving the response to this to the opendatakit-developers list.

Mitch

··· On Fri, Jun 8, 2012 at 9:45 AM, Joaquín Blaya wrote:

I download ODK-Collect 1.1.7 and are using the instruccions from OpenMRS
to get the formlist and upload forms (
https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide
)

However, I couldn't get the form list to be downloaded. Our servers form
list is here and it works (the xml is at the end of the email)

http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

So I placed
Protocol OpenRosa 1.0,
Server http://dev.ehs.cl/sisalhttp://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist
the appropriate username and password
Form List Path /moduleServlet/xforms/xformDownload?target=xformslisthttp://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist
or
/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

and when I hit Get Blank Form, it says connecting to server, and then
returns a blank screen almost immediately. I tried connecting to another
server and same thing happens.

Any ideas why this could happen?

Joaquín

<?xml version='1.0' encoding='UTF-8' ?> 2 Formulario de Prueba 3 Indicación de anticonceptivos hormonales o DIU 5 Entrega de Metodo Anticonceptivo ya indicado 6 Consejería en Salud Sexual y Salud Reproductiva 7 Prueba de calcular

Gerente de Desarrollo, eHealth Systems http://www.ehs.cl/
Research Fellow, Escuela de Medicina de Harvard http://hms.harvard.edu/
Moderador, GHDOnline.org http://www.ghdonline.org/

On Thu, Jun 7, 2012 at 5:17 AM, Samuel T. Mbugua sthaiya@gmail.comwrote:

To use collect only and connect to openmrs which has xforms module
installed, this page will guide you on the URLs you need.

https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide

This I tested last with odkCollect version 1.1.6 so not sure whether it
will work with 1.1.7.

Sam

On 06/05/2012 08:01 PM, Joaquín Blaya wrote:

Hey guys,
Just wanted to ping you to see about the ODK Collect/Clinic version that
connects to OpenMRS, any updates?

Thanks,

Joaquín


Gerente de Desarrollo, eHealth Systems http://www.ehs.cl/
Research Fellow, Escuela de Medicina de Harvard http://hms.harvard.edu/
Moderador, GHDOnline.org http://www.ghdonline.org/

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

Moved this thread off of the opendatakit list...

You should read the OpenRosa specs here:
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI

You have not implemented the form list API in a conforming manner:
https://bitbucket.org/javarosa/javarosa/wiki/FormListAPI

ODK Aggregate's OpenRosa compliant forms list looks like this:
http://opendatakit.appspot.com/xformsList It is returned when the OpenRosa
1.0 version header is present in the request.

Note that this listing includes an additional "majorMinorVersion" tag that
is a legacy of the pre-standardized implementation. You can omit it if your
forms do not use version attributes or if you are targeting ODK Collect 1.2
and newer clients. ODK Collect 1.2 supports string-valued versions and is
more robust w.r.t. versions. If you do need to work with 1.1.7, and do
need to support numeric version strings, you will need to include
non-standard tag and it should contain the same value as that returned by
the version tag.

Note that ODK Aggregate 1.x falls back to the older pre-ODK-Collect 1.1.7
format used with ODK Aggregate 0.9.x (
http://opendatakit.appspot.com/formList ) when the OpenRosa header version
tag is omitted.

Mitch

··· On Fri, Jun 8, 2012 at 10:24 AM, Mitch S wrote:

Moving the response to this to the opendatakit-developers list.

Mitch

On Fri, Jun 8, 2012 at 9:45 AM, Joaquín Blaya joaquinblaya@gmail.comwrote:

I download ODK-Collect 1.1.7 and are using the instruccions from OpenMRS
to get the formlist and upload forms (
https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide
)

However, I couldn't get the form list to be downloaded. Our servers form
list is here and it works (the xml is at the end of the email)

http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

So I placed
Protocol OpenRosa 1.0,
Server http://dev.ehs.cl/sisalhttp://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist
the appropriate username and password
Form List Path /moduleServlet/xforms/xformDownload?target=xformslisthttp://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist
or
/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

and when I hit Get Blank Form, it says connecting to server, and then
returns a blank screen almost immediately. I tried connecting to another
server and same thing happens.

Any ideas why this could happen?

Joaquín

<?xml version='1.0' encoding='UTF-8' ?> 2 Formulario de Prueba 3 Indicación de anticonceptivos hormonales o DIU 5 Entrega de Metodo Anticonceptivo ya indicado 6 Consejería en Salud Sexual y Salud Reproductiva 7 Prueba de calcular

Gerente de Desarrollo, eHealth Systems http://www.ehs.cl/
Research Fellow, Escuela de Medicina de Harvard http://hms.harvard.edu/
Moderador, GHDOnline.org http://www.ghdonline.org/

On Thu, Jun 7, 2012 at 5:17 AM, Samuel T. Mbugua sthaiya@gmail.comwrote:

To use collect only and connect to openmrs which has xforms module
installed, this page will guide you on the URLs you need.

https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide

This I tested last with odkCollect version 1.1.6 so not sure whether it
will work with 1.1.7.

Sam

On 06/05/2012 08:01 PM, Joaquín Blaya wrote:

Hey guys,
Just wanted to ping you to see about the ODK Collect/Clinic version that
connects to OpenMRS, any updates?

Thanks,

Joaquín


Gerente de Desarrollo, eHealth Systems http://www.ehs.cl/
Research Fellow, Escuela de Medicina de Harvardhttp://hms.harvard.edu/
Moderador, GHDOnline.org http://www.ghdonline.org/

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

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

Mitch,
Thanks for such an in-depth response. I am going to post this on the
OpenMRS website for these changes to be made.

Sam Mbugua mentioned that this worked with ODK Collect 1.1.6, however, even
though I've downloaded the code, I can't get it to compile. Is there
somewhere I could get the apk?

Joaquín

··· On Fri, Jun 8, 2012 at 1:27 PM, Mitch S wrote:

Moved this thread off of the opendatakit list...

You should read the OpenRosa specs here:
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI

You have not implemented the form list API in a conforming manner:
https://bitbucket.org/javarosa/javarosa/wiki/FormListAPI

ODK Aggregate's OpenRosa compliant forms list looks like this:
http://opendatakit.appspot.com/xformsList It is returned when the
OpenRosa 1.0 version header is present in the request.

Note that this listing includes an additional "majorMinorVersion" tag that
is a legacy of the pre-standardized implementation. You can omit it if your
forms do not use version attributes or if you are targeting ODK Collect 1.2
and newer clients. ODK Collect 1.2 supports string-valued versions and is
more robust w.r.t. versions. If you do need to work with 1.1.7, and do
need to support numeric version strings, you will need to include
non-standard tag and it should contain the same value as that returned by
the version tag.

Note that ODK Aggregate 1.x falls back to the older pre-ODK-Collect 1.1.7
format used with ODK Aggregate 0.9.x (
http://opendatakit.appspot.com/formList ) when the OpenRosa header
version tag is omitted.

Mitch

On Fri, Jun 8, 2012 at 10:24 AM, Mitch S mitchellsundt@gmail.com wrote:

Moving the response to this to the opendatakit-developers list.

Mitch

On Fri, Jun 8, 2012 at 9:45 AM, Joaquín Blaya joaquinblaya@gmail.comwrote:

I download ODK-Collect 1.1.7 and are using the instruccions from OpenMRS
to get the formlist and upload forms (
https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide
)

However, I couldn't get the form list to be downloaded. Our servers form
list is here and it works (the xml is at the end of the email)

http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

So I placed
Protocol OpenRosa 1.0,
Server http://dev.ehs.cl/sisalhttp://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist
the appropriate username and password
Form List Path /moduleServlet/xforms/xformDownload?target=xformslisthttp://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist
or
/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

and when I hit Get Blank Form, it says connecting to server, and then
returns a blank screen almost immediately. I tried connecting to another
server and same thing happens.

Any ideas why this could happen?

Joaquín

<?xml version='1.0' encoding='UTF-8' ?> 2 Formulario de Prueba 3 Indicación de anticonceptivos hormonales o DIU 5 Entrega de Metodo Anticonceptivo ya indicado 6 Consejería en Salud Sexual y Salud Reproductiva 7 Prueba de calcular

Gerente de Desarrollo, eHealth Systems http://www.ehs.cl/
Research Fellow, Escuela de Medicina de Harvardhttp://hms.harvard.edu/
Moderador, GHDOnline.org http://www.ghdonline.org/

On Thu, Jun 7, 2012 at 5:17 AM, Samuel T. Mbugua sthaiya@gmail.comwrote:

To use collect only and connect to openmrs which has xforms module
installed, this page will guide you on the URLs you need.

https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide

This I tested last with odkCollect version 1.1.6 so not sure whether it
will work with 1.1.7.

Sam

On 06/05/2012 08:01 PM, Joaquín Blaya wrote:

Hey guys,
Just wanted to ping you to see about the ODK Collect/Clinic version
that connects to OpenMRS, any updates?

Thanks,

Joaquín


Gerente de Desarrollo, eHealth Systems http://www.ehs.cl/
Research Fellow, Escuela de Medicina de Harvardhttp://hms.harvard.edu/
Moderador, GHDOnline.org http://www.ghdonline.org/

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

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

Mitch, thanks for that response... clarifies a question I had on the
formhub side as well, a little. formhub exposes formLists (that look
like http://opendatakit.appspot.com/formList rather than
http://opendatakit.appspot.com/xformsList), and everything is working fine
with ODK Collect 1.1.7 (except media downloads). We are planning to support
both going forward, which you have confirmed as the right decision.

Question: when and how does ODK Collect decide to use formList vs.
xformsList as the formList endpoint? (asking from the server-side developer
angle).

cheers,
--p

··· On Friday, June 8, 2012 1:27:58 PM UTC-4, Mitch wrote: > > Moved this thread off of the opendatakit list... > > You should read the OpenRosa specs here: > https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI > > You have not implemented the form list API in a conforming manner: > https://bitbucket.org/javarosa/javarosa/wiki/FormListAPI > > ODK Aggregate's OpenRosa compliant forms list looks like this: > http://opendatakit.appspot.com/xformsList It is returned when the > OpenRosa 1.0 version header is present in the request. > > Note that this listing includes an additional "majorMinorVersion" tag that > is a legacy of the pre-standardized implementation. You can omit it if your > forms do not use version attributes or if you are targeting ODK Collect 1.2 > and newer clients. ODK Collect 1.2 supports string-valued versions and is > more robust w.r.t. versions. If you do need to work with 1.1.7, and do > need to support numeric version strings, you will need to include > non-standard tag and it should contain the same value as that returned by > the version tag. > > Note that ODK Aggregate 1.x falls back to the older pre-ODK-Collect 1.1.7 > format used with ODK Aggregate 0.9.x ( > http://opendatakit.appspot.com/formList ) when the OpenRosa header > version tag is omitted. > > Mitch > > On Fri, Jun 8, 2012 at 10:24 AM, Mitch S wrote: > >> Moving the response to this to the *opendatakit-developers* list. >> >> Mitch >> >> >> On Fri, Jun 8, 2012 at 9:45 AM, Joaquín Blaya wrote: >> >>> I download ODK-Collect 1.1.7 and are using the instruccions from OpenMRS >>> to get the formlist and upload forms ( >>> https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide >>> ) >>> >>> However, I couldn't get the form list to be downloaded. Our servers form >>> list is here and it works (the xml is at the end of the email) >>> >>> http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321 >>> >>> So I placed >>> Protocol OpenRosa 1.0, >>> Server http://dev.ehs.cl/sisal >>> the appropriate username and password >>> Form List Path /moduleServlet/xforms/xformDownload?target=xformslist >>> or >>> /moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321 >>> >>> and when I hit Get Blank Form, it says connecting to server, and then >>> returns a blank screen almost immediately. I tried connecting to another >>> server and same thing happens. >>> >>> Any ideas why this could happen? >>> >>> Joaquín >>> >>> <?xml version='1.0' encoding='UTF-8' ?> >>> >>> >>> 2 >>> Formulario de Prueba >>> >>> >>> 3 >>> Indicación de anticonceptivos hormonales o DIU >>> >>> >>> 5 >>> Entrega de Metodo Anticonceptivo ya indicado >>> >>> >>> 6 >>> Consejería en Salud Sexual y Salud Reproductiva >>> >>> >>> 7 >>> Prueba de calcular >>> >>> >>> >>> ___________________________________________________________________ >>> Gerente de Desarrollo, eHealth Systems >>> Research Fellow, Escuela de Medicina de Harvard >>> Moderador, GHDOnline.org >>> >>> >>> >>> On Thu, Jun 7, 2012 at 5:17 AM, Samuel T. Mbugua wrote: >>> >>>> To use collect only and connect to openmrs which has xforms module >>>> installed, this page will guide you on the URLs you need. >>>> >>>> >>>> https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide >>>> >>>> This I tested last with odkCollect version 1.1.6 so not sure whether it >>>> will work with 1.1.7. >>>> >>>> Sam >>>> >>>> >>>> On 06/05/2012 08:01 PM, Joaquín Blaya wrote: >>>> >>>> Hey guys, >>>> Just wanted to ping you to see about the ODK Collect/Clinic version >>>> that connects to OpenMRS, any updates? >>>> >>>> Thanks, >>>> >>>> Joaquín >>>> ___________________________________________________________________ >>>> Gerente de Desarrollo, eHealth Systems >>>> Research Fellow, Escuela de Medicina de Harvard >>>> Moderador, GHDOnline.org >>>> >>>> >>> >>> -- >>> Post: opendatakit@googlegroups.com >>> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >>> Options: http://groups.google.com/group/opendatakit?hl=en >>> >> >> >> >> -- >> Mitch Sundt >> Software Engineer >> University of Washington >> mitchellsundt@gmail.com >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitchellsundt@gmail.com >

I was finally able to build the 1.1.6 apk, however, when I go to server
preferences, the only option it lists is Server, it doesn't let me list the
url for downloading the form list or uploading forms, so when I go to Get
New Forms it gives me the 404 error that the Form listing failed.

Do I have to go into the code to change the location where it looks for the
form list and uploads the forms? or is there an easier way of doing it?

Joaquín

··· On Sat, Jun 9, 2012 at 8:14 PM, Joaquín Blaya wrote:

Mitch,
Thanks for such an in-depth response. I am going to post this on the
OpenMRS website for these changes to be made.

Sam Mbugua mentioned that this worked with ODK Collect 1.1.6, however,
even though I've downloaded the code, I can't get it to compile. Is there
somewhere I could get the apk?

Joaquín

On Fri, Jun 8, 2012 at 1:27 PM, Mitch S mitchellsundt@gmail.com wrote:

Moved this thread off of the opendatakit list...

You should read the OpenRosa specs here:
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI

You have not implemented the form list API in a conforming manner:
https://bitbucket.org/javarosa/javarosa/wiki/FormListAPI

ODK Aggregate's OpenRosa compliant forms list looks like this:
http://opendatakit.appspot.com/xformsList It is returned when the
OpenRosa 1.0 version header is present in the request.

Note that this listing includes an additional "majorMinorVersion" tag
that is a legacy of the pre-standardized implementation. You can omit it if
your forms do not use version attributes or if you are targeting ODK
Collect 1.2 and newer clients. ODK Collect 1.2 supports string-valued
versions and is more robust w.r.t. versions. If you do need to work with
1.1.7, and do need to support numeric version strings, you will need to
include non-standard tag and it should contain the same value as that
returned by the version tag.

Note that ODK Aggregate 1.x falls back to the older pre-ODK-Collect 1.1.7
format used with ODK Aggregate 0.9.x (
http://opendatakit.appspot.com/formList ) when the OpenRosa header
version tag is omitted.

Mitch

On Fri, Jun 8, 2012 at 10:24 AM, Mitch S mitchellsundt@gmail.com wrote:

Moving the response to this to the opendatakit-developers list.

Mitch

On Fri, Jun 8, 2012 at 9:45 AM, Joaquín Blaya joaquinblaya@gmail.comwrote:

I download ODK-Collect 1.1.7 and are using the instruccions from
OpenMRS to get the formlist and upload forms (
https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide
)

However, I couldn't get the form list to be downloaded. Our servers
form list is here and it works (the xml is at the end of the email)

http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

So I placed
Protocol OpenRosa 1.0,
Server http://dev.ehs.cl/sisalhttp://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist
the appropriate username and password
Form List Path /moduleServlet/xforms/xformDownload?target=xformslisthttp://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist
or
/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

and when I hit Get Blank Form, it says connecting to server, and then
returns a blank screen almost immediately. I tried connecting to another
server and same thing happens.

Any ideas why this could happen?

Joaquín

<?xml version='1.0' encoding='UTF-8' ?> 2 Formulario de Prueba 3 Indicación de anticonceptivos hormonales o DIU 5 Entrega de Metodo Anticonceptivo ya indicado 6 Consejería en Salud Sexual y Salud Reproductiva 7 Prueba de calcular

Gerente de Desarrollo, eHealth Systems http://www.ehs.cl/
Research Fellow, Escuela de Medicina de Harvardhttp://hms.harvard.edu/
Moderador, GHDOnline.org http://www.ghdonline.org/

On Thu, Jun 7, 2012 at 5:17 AM, Samuel T. Mbugua sthaiya@gmail.comwrote:

To use collect only and connect to openmrs which has xforms module
installed, this page will guide you on the URLs you need.

https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide

This I tested last with odkCollect version 1.1.6 so not sure whether
it will work with 1.1.7.

Sam

On 06/05/2012 08:01 PM, Joaquín Blaya wrote:

Hey guys,
Just wanted to ping you to see about the ODK Collect/Clinic version
that connects to OpenMRS, any updates?

Thanks,

Joaquín


Gerente de Desarrollo, eHealth Systems http://www.ehs.cl/
Research Fellow, Escuela de Medicina de Harvardhttp://hms.harvard.edu/
Moderador, GHDOnline.org http://www.ghdonline.org/

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

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

Prabhas,

I believe that collect calls "formList" and Aggregate figures out
which kind of call it is based off the request coming in (checks for
what version of openrosa the request is). The xformList url is mainly
for debugging and demonstrating the differences (like Mitch did
above).

http://code.google.com/p/opendatakit/source/browse/src/main/java/org/opendatakit/aggregate/servlet/FormListServlet.java?repo=aggregate

Cheers,
Waylon

··· On Tue, Jun 12, 2012 at 11:31 AM, Prabhas Pokharel wrote: > Mitch, thanks for that response... clarifies a question I had on the formhub > side as well, a little. formhub exposes formLists (that look > like http://opendatakit.appspot.com/formList rather > than http://opendatakit.appspot.com/xformsList), and everything is working > fine with ODK Collect 1.1.7 (except media downloads). We are planning to > support both going forward, which you have confirmed as the right decision. > > Question: when and how does ODK Collect decide to use formList vs. > xformsList as the formList endpoint? (asking from the server-side developer > angle). > > cheers, > --p > > > On Friday, June 8, 2012 1:27:58 PM UTC-4, Mitch wrote: >> >> Moved this thread off of the opendatakit list... >> >> You should read the OpenRosa specs here: >> https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI >> >> You have not implemented the form list API in a conforming manner: >> https://bitbucket.org/javarosa/javarosa/wiki/FormListAPI >> >> ODK Aggregate's OpenRosa compliant forms list looks like this: >> http://opendatakit.appspot.com/xformsList It is returned when the OpenRosa >> 1.0 version header is present in the request. >> >> Note that this listing includes an additional "majorMinorVersion" tag that >> is a legacy of the pre-standardized implementation. You can omit it if your >> forms do not use version attributes or if you are targeting ODK Collect 1.2 >> and newer clients. ODK Collect 1.2 supports string-valued versions and is >> more robust w.r.t. versions. If you do need to work with 1.1.7, and do need >> to support numeric version strings, you will need to include non-standard >> tag and it should contain the same value as that returned by the version >> tag. >> >> Note that ODK Aggregate 1.x falls back to the older pre-ODK-Collect 1.1.7 >> format used with ODK Aggregate 0.9.x ( >> http://opendatakit.appspot.com/formList ) when the OpenRosa header version >> tag is omitted. >> >> Mitch >> >> On Fri, Jun 8, 2012 at 10:24 AM, Mitch S wrote: >>> >>> Moving the response to this to the opendatakit-developers list. >>> >>> Mitch >>> >>> >>> On Fri, Jun 8, 2012 at 9:45 AM, Joaquín Blaya wrote: >>>> >>>> I download ODK-Collect 1.1.7 and are using the instruccions from OpenMRS >>>> to get the formlist and upload forms >>>> (https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide) >>>> >>>> However, I couldn't get the form list to be downloaded. Our servers form >>>> list is here and it works (the xml is at the end of the email) >>>> >>>> http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321 >>>> >>>> So I placed >>>> Protocol OpenRosa 1.0, >>>> Server http://dev.ehs.cl/sisal >>>> the appropriate username and password >>>> Form List >>>> Path /moduleServlet/xforms/xformDownload?target=xformslist or /moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321 >>>> >>>> and when I hit Get Blank Form, it says connecting to server, and then >>>> returns a blank screen almost immediately. I tried connecting to another >>>> server and same thing happens. >>>> >>>> Any ideas why this could happen? >>>> >>>> Joaquín >>>> >>>> <?xml version='1.0' encoding='UTF-8' ?> >>>> >>>> >>>> 2 >>>> Formulario de Prueba >>>> >>>> >>>> 3 >>>> Indicación de anticonceptivos hormonales o DIU >>>> >>>> >>>> 5 >>>> Entrega de Metodo Anticonceptivo ya indicado >>>> >>>> >>>> 6 >>>> Consejería en Salud Sexual y Salud Reproductiva >>>> >>>> >>>> 7 >>>> Prueba de calcular >>>> >>>> >>>> >>>> ___________________________________________________________________ >>>> Gerente de Desarrollo, eHealth Systems >>>> Research Fellow, Escuela de Medicina de Harvard >>>> Moderador, GHDOnline.org >>>> >>>> >>>> >>>> On Thu, Jun 7, 2012 at 5:17 AM, Samuel T. Mbugua wrote: >>>>> >>>>> To use collect only and connect to openmrs which has xforms module >>>>> installed, this page will guide you on the URLs you need. >>>>> >>>>> >>>>> https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide >>>>> >>>>> This I tested last with odkCollect version 1.1.6 so not sure whether it >>>>> will work with 1.1.7. >>>>> >>>>> Sam >>>>> >>>>> >>>>> On 06/05/2012 08:01 PM, Joaquín Blaya wrote: >>>>> >>>>> Hey guys, >>>>> Just wanted to ping you to see about the ODK Collect/Clinic version >>>>> that connects to OpenMRS, any updates? >>>>> >>>>> Thanks, >>>>> >>>>> Joaquín >>>>> ___________________________________________________________________ >>>>> Gerente de Desarrollo, eHealth Systems >>>>> Research Fellow, Escuela de Medicina de Harvard >>>>> Moderador, GHDOnline.org >>>>> >>>> >>>> >>>> -- >>>> Post: opendatakit@googlegroups.com >>>> Unsubscribe: opendatakit+unsubscribe@googlegroups.com >>>> Options: http://groups.google.com/group/opendatakit?hl=en >>> >>> >>> >>> >>> -- >>> Mitch Sundt >>> Software Engineer >>> University of Washington >>> mitchellsundt@gmail.com >> >> >> >> >> -- >> Mitch Sundt >> Software Engineer >> University of Washington >> mitchellsundt@gmail.com

Greetings Joaquin,

Did you get a solution for this? I am having the exact same problem using OpenMRS Version 1.9.7 and ODK Collect.

Instead of brining back the list after Authentication, the screen is just blank.
When I use the default opendatakit url the application brings back the default list.

Regards,
Sean

··· On Sunday, June 10, 2012 2:14:33 AM UTC+2, Joaquín Blaya wrote: > Mitch, > Thanks for such an in-depth response. I am going to post this on the OpenMRS website for these changes to be made. > > > Sam Mbugua mentioned that this worked with ODK Collect 1.1.6, however, even though I've downloaded the code, I can't get it to compile. Is there somewhere I could get the apk? > > > > > Joaquín > > > > > > On Fri, Jun 8, 2012 at 1:27 PM, Mitch S wrote: > > > > Moved this thread off of the opendatakit list... > > > > You should read the OpenRosa specs here: https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI > > > > You have not implemented the form list API in a conforming manner: https://bitbucket.org/javarosa/javarosa/wiki/FormListAPI > > > > ODK Aggregate's OpenRosa compliant forms list looks like this: http://opendatakit.appspot.com/xformsList It is returned when the OpenRosa 1.0 version header is present in the request. > > > > > > > > Note that this listing includes an additional "majorMinorVersion" tag > that is a legacy of the pre-standardized implementation. You can omit it > if your forms do not use version attributes or if you are targeting ODK > Collect 1.2 and newer clients. ODK Collect 1.2 supports string-valued > versions and is more robust w.r.t. versions. If you do need to work with 1.1.7, and > do need to support numeric version strings, you will need to include non-standard tag and it should contain > the same value as that returned by the version tag. > > > Note that ODK Aggregate 1.x falls back to the older pre-ODK-Collect > 1.1.7 format used with ODK Aggregate 0.9.x ( > http://opendatakit.appspot.com/formList ) when the OpenRosa header version tag is omitted. > > Mitch > > > > > > > > > On Fri, Jun 8, 2012 at 10:24 AM, Mitch S wrote: > > > > > Moving the response to this to the opendatakit-developers list. > > Mitch > > > > > On Fri, Jun 8, 2012 at 9:45 AM, Joaquín Blaya wrote: > > > > > > > > I download ODK-Collect 1.1.7 and are using the instruccions from OpenMRS to get the formlist and upload forms (https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide) > > > > > > > > > > However, I couldn't get the form list to be downloaded. Our servers form list is here and it works (the xml is at the end of the email) > http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321 > > > > > > > > > > > > So I placed > Protocol OpenRosa 1.0, > Server http://dev.ehs.cl/sisal > > > > > > > > > the appropriate username and password > > Form List Path /moduleServlet/xforms/xformDownload?target=xformslist or /moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321 > > > > > > > > > > > > and when I hit Get Blank Form, it says connecting to server, and then returns a blank screen almost immediately. I tried connecting to another server and same thing happens. > > > Any ideas why this could happen? > > > > > > > > > > > Joaquín > > > > <?xml version='1.0' encoding='UTF-8' ?> > > > > > 2 > Formulario de Prueba > > > > > 3 > Indicación de anticonceptivos hormonales o DIU > > > > > 5 > Entrega de Metodo Anticonceptivo ya indicado > > > 6 > > > Consejería en Salud Sexual y Salud Reproductiva > > > 7 > > > Prueba de calcular > > > > ___________________________________________________________________ > > > > > Gerente de Desarrollo, eHealth Systems > Research Fellow, Escuela de Medicina de Harvard > Moderador, GHDOnline.org > > > > > > > > > > > > > > > > > On Thu, Jun 7, 2012 at 5:17 AM, Samuel T. Mbugua wrote: > > > > > > > > > > > To use collect only and connect to openmrs which has xforms module > installed, this page will guide you on the URLs you need. > > > > https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide > > > > This I tested last with odkCollect version 1.1.6 so not sure whether > it will work with 1.1.7. > > > > Sam > > > > > > On 06/05/2012 08:01 PM, Joaquín Blaya wrote: > Hey guys, > > Just wanted to ping you to see about the ODK Collect/Clinic > version that connects to OpenMRS, any updates? > > > > > > Thanks, > > > > Joaquín > > ___________________________________________________________________ > > Gerente de Desarrollo, eHealth Systems > > Research Fellow, Escuela de > Medicina de Harvard > > Moderador, GHDOnline.org > > > > > > > > > > > > > > > > -- > > Post: opend...@googlegroups.com > > Unsubscribe: opendatakit...@googlegroups.com > > Options: http://groups.google.com/group/opendatakit?hl=en > > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com > > > > > > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com

So, in Collect 1.1.6, is the only way to change that formList to something
that OpenMRS has such as xformDownloadList?uname=.... is by changing it in
the code?

Joaquín

··· On Tue, Jun 12, 2012 at 3:57 PM, W. Brunette wrote:

Prabhas,

I believe that collect calls "formList" and Aggregate figures out
which kind of call it is based off the request coming in (checks for
what version of openrosa the request is). The xformList url is mainly
for debugging and demonstrating the differences (like Mitch did
above).

http://code.google.com/p/opendatakit/source/browse/src/main/java/org/opendatakit/aggregate/servlet/FormListServlet.java?repo=aggregate

Cheers,
Waylon

On Tue, Jun 12, 2012 at 11:31 AM, Prabhas Pokharel prabhas.pokharel@gmail.com wrote:

Mitch, thanks for that response... clarifies a question I had on the
formhub
side as well, a little. formhub exposes formLists (that look
like http://opendatakit.appspot.com/formList rather
than http://opendatakit.appspot.com/xformsList), and everything is
working
fine with ODK Collect 1.1.7 (except media downloads). We are planning to
support both going forward, which you have confirmed as the right
decision.

Question: when and how does ODK Collect decide to use formList vs.
xformsList as the formList endpoint? (asking from the server-side
developer
angle).

cheers,
--p

On Friday, June 8, 2012 1:27:58 PM UTC-4, Mitch wrote:

Moved this thread off of the opendatakit list...

You should read the OpenRosa specs here:
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI

You have not implemented the form list API in a conforming manner:
https://bitbucket.org/javarosa/javarosa/wiki/FormListAPI

ODK Aggregate's OpenRosa compliant forms list looks like this:
http://opendatakit.appspot.com/xformsList It is returned when the
OpenRosa
1.0 version header is present in the request.

Note that this listing includes an additional "majorMinorVersion" tag
that
is a legacy of the pre-standardized implementation. You can omit it if
your
forms do not use version attributes or if you are targeting ODK Collect
1.2
and newer clients. ODK Collect 1.2 supports string-valued versions and
is
more robust w.r.t. versions. If you do need to work with 1.1.7, and do
need
to support numeric version strings, you will need to include
non-standard
tag and it should contain the same value as that returned by the version
tag.

Note that ODK Aggregate 1.x falls back to the older pre-ODK-Collect
1.1.7
format used with ODK Aggregate 0.9.x (
http://opendatakit.appspot.com/formList ) when the OpenRosa header
version
tag is omitted.

Mitch

On Fri, Jun 8, 2012 at 10:24 AM, Mitch S mitchellsundt@gmail.com wrote:

Moving the response to this to the opendatakit-developers list.

Mitch

On Fri, Jun 8, 2012 at 9:45 AM, Joaquín Blaya joaquinblaya@gmail.com wrote:

I download ODK-Collect 1.1.7 and are using the instruccions from
OpenMRS
to get the formlist and upload forms
(
https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide
)

However, I couldn't get the form list to be downloaded. Our servers
form
list is here and it works (the xml is at the end of the email)

http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

So I placed
Protocol OpenRosa 1.0,
Server http://dev.ehs.cl/sisal
the appropriate username and password
Form List

Path /moduleServlet/xforms/xformDownload?target=xformslist or /moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

and when I hit Get Blank Form, it says connecting to server, and then
returns a blank screen almost immediately. I tried connecting to
another
server and same thing happens.

Any ideas why this could happen?

Joaquín

<?xml version='1.0' encoding='UTF-8' ?> 2 Formulario de Prueba 3 Indicación de anticonceptivos hormonales o DIU 5 Entrega de Metodo Anticonceptivo ya indicado 6 Consejería en Salud Sexual y Salud Reproductiva 7 Prueba de calcular

Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org

On Thu, Jun 7, 2012 at 5:17 AM, Samuel T. Mbugua sthaiya@gmail.com wrote:

To use collect only and connect to openmrs which has xforms module
installed, this page will guide you on the URLs you need.

https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide

This I tested last with odkCollect version 1.1.6 so not sure whether
it
will work with 1.1.7.

Sam

On 06/05/2012 08:01 PM, Joaquín Blaya wrote:

Hey guys,
Just wanted to ping you to see about the ODK Collect/Clinic version
that connects to OpenMRS, any updates?

Thanks,

Joaquín


Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

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

Hi Joaquin,

Can you try append this to the url? &format=withurl

··· On Wed, Jun 13, 2012 at 12:04 AM, Joaquín Blaya wrote:

So, in Collect 1.1.6, is the only way to change that formList to something
that OpenMRS has such as xformDownloadList?uname=.... is by changing it in
the code?

Joaquín

On Tue, Jun 12, 2012 at 3:57 PM, W. Brunette wbrunette@gmail.com wrote:

Prabhas,

I believe that collect calls "formList" and Aggregate figures out
which kind of call it is based off the request coming in (checks for
what version of openrosa the request is). The xformList url is mainly
for debugging and demonstrating the differences (like Mitch did
above).

http://code.google.com/p/opendatakit/source/browse/src/main/java/org/opendatakit/aggregate/servlet/FormListServlet.java?repo=aggregate

Cheers,
Waylon

On Tue, Jun 12, 2012 at 11:31 AM, Prabhas Pokharel prabhas.pokharel@gmail.com wrote:

Mitch, thanks for that response... clarifies a question I had on the
formhub
side as well, a little. formhub exposes formLists (that look
like http://opendatakit.appspot.com/formList rather
than http://opendatakit.appspot.com/xformsList), and everything is
working
fine with ODK Collect 1.1.7 (except media downloads). We are planning to
support both going forward, which you have confirmed as the right
decision.

Question: when and how does ODK Collect decide to use formList vs.
xformsList as the formList endpoint? (asking from the server-side
developer
angle).

cheers,
--p

On Friday, June 8, 2012 1:27:58 PM UTC-4, Mitch wrote:

Moved this thread off of the opendatakit list...

You should read the OpenRosa specs here:
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI

You have not implemented the form list API in a conforming manner:
https://bitbucket.org/javarosa/javarosa/wiki/FormListAPI

ODK Aggregate's OpenRosa compliant forms list looks like this:
http://opendatakit.appspot.com/xformsList It is returned when the
OpenRosa
1.0 version header is present in the request.

Note that this listing includes an additional "majorMinorVersion" tag
that
is a legacy of the pre-standardized implementation. You can omit it if
your
forms do not use version attributes or if you are targeting ODK
Collect 1.2
and newer clients. ODK Collect 1.2 supports string-valued versions
and is
more robust w.r.t. versions. If you do need to work with 1.1.7, and
do need
to support numeric version strings, you will need to include
non-standard
tag and it should contain the same value as that returned by the
version
tag.

Note that ODK Aggregate 1.x falls back to the older pre-ODK-Collect
1.1.7
format used with ODK Aggregate 0.9.x (
http://opendatakit.appspot.com/formList ) when the OpenRosa header
version
tag is omitted.

Mitch

On Fri, Jun 8, 2012 at 10:24 AM, Mitch S mitchellsundt@gmail.com wrote:

Moving the response to this to the opendatakit-developers list.

Mitch

On Fri, Jun 8, 2012 at 9:45 AM, Joaquín Blaya <joaquinblaya@gmail.com wrote:

I download ODK-Collect 1.1.7 and are using the instruccions from
OpenMRS
to get the formlist and upload forms
(
https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide
)

However, I couldn't get the form list to be downloaded. Our servers
form
list is here and it works (the xml is at the end of the email)

http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

So I placed
Protocol OpenRosa 1.0,
Server http://dev.ehs.cl/sisal
the appropriate username and password
Form List

Path /moduleServlet/xforms/xformDownload?target=xformslist or /moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

and when I hit Get Blank Form, it says connecting to server, and then
returns a blank screen almost immediately. I tried connecting to
another
server and same thing happens.

Any ideas why this could happen?

Joaquín

<?xml version='1.0' encoding='UTF-8' ?> 2 Formulario de Prueba 3 Indicación de anticonceptivos hormonales o DIU 5 Entrega de Metodo Anticonceptivo ya indicado 6 Consejería en Salud Sexual y Salud Reproductiva 7 Prueba de calcular

Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org

On Thu, Jun 7, 2012 at 5:17 AM, Samuel T. Mbugua sthaiya@gmail.com wrote:

To use collect only and connect to openmrs which has xforms module
installed, this page will guide you on the URLs you need.

https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide

This I tested last with odkCollect version 1.1.6 so not sure
whether it
will work with 1.1.7.

Sam

On 06/05/2012 08:01 PM, Joaquín Blaya wrote:

Hey guys,
Just wanted to ping you to see about the ODK Collect/Clinic version
that connects to OpenMRS, any updates?

Thanks,

Joaquín


Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

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

--
If we keep uppermost in our minds the unkind and unjust acts of others, we
shall find it impossible to love them as Christ has loved us; but if our
thoughts dwell upon the wondrous love and pity of Christ for us, the same
spirit will flow out to others.

RE: 1.1.6 -- yes, you need to modify the code.

RE: formsList vs. xformsList --- Waylon's description is correct.

ODK Collect always uses formsList (or, if 1.1.7 and later, whatever server
setting you configure).

Aggregate determines whether it is being contacted by a legacy ODK Collect
1.1.5 or earlier app by the absence of the OpenRosa version header; if that
header is missing Aggregate falls back to the pre-standard 0.9.x formsList
version (and so browsing to /formsList in a browser returns that older
version).

ODK Collect 1.1.6 and newer send the OpenRosa version header and receive
the OpenRosa-compliant list (also presented if you browse to xformsList --
so it is easy to debug with a browser).

ODK Collect 1.1.6 and 1.1.7 are not fully OpenRosa compliant and expect the
majorMinorVersion tag to contain the version. The version must be numeric.

ODK Collect 1.2 is OpenRosa compliant and looks for the version tag and
falls back to the majorMinorVersion tag if that is not present. The version
can be a string.

In general, if you are using versions, you should be using Collect 1.2 and
Aggregate 1.0.4 or later.

I believe Aggregate 1.0.4 complies with the OpenRosa standard (with the
caveat that version must be numeric).

Mitch

··· On Tue, Jun 12, 2012 at 11:05 PM, Daniel Kayiwa wrote:

Hi Joaquin,

Can you try append this to the url? &format=withurl

On Wed, Jun 13, 2012 at 12:04 AM, Joaquín Blaya joaquinblaya@gmail.comwrote:

So, in Collect 1.1.6, is the only way to change that formList to
something that OpenMRS has such as xformDownloadList?uname=.... is by
changing it in the code?

Joaquín

On Tue, Jun 12, 2012 at 3:57 PM, W. Brunette wbrunette@gmail.com wrote:

Prabhas,

I believe that collect calls "formList" and Aggregate figures out
which kind of call it is based off the request coming in (checks for
what version of openrosa the request is). The xformList url is mainly
for debugging and demonstrating the differences (like Mitch did
above).

http://code.google.com/p/opendatakit/source/browse/src/main/java/org/opendatakit/aggregate/servlet/FormListServlet.java?repo=aggregate

Cheers,
Waylon

On Tue, Jun 12, 2012 at 11:31 AM, Prabhas Pokharel prabhas.pokharel@gmail.com wrote:

Mitch, thanks for that response... clarifies a question I had on the
formhub
side as well, a little. formhub exposes formLists (that look
like http://opendatakit.appspot.com/formList rather
than http://opendatakit.appspot.com/xformsList), and everything is
working
fine with ODK Collect 1.1.7 (except media downloads). We are planning
to
support both going forward, which you have confirmed as the right
decision.

Question: when and how does ODK Collect decide to use formList vs.
xformsList as the formList endpoint? (asking from the server-side
developer
angle).

cheers,
--p

On Friday, June 8, 2012 1:27:58 PM UTC-4, Mitch wrote:

Moved this thread off of the opendatakit list...

You should read the OpenRosa specs here:
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI

You have not implemented the form list API in a conforming manner:
https://bitbucket.org/javarosa/javarosa/wiki/FormListAPI

ODK Aggregate's OpenRosa compliant forms list looks like this:
http://opendatakit.appspot.com/xformsList It is returned when the
OpenRosa
1.0 version header is present in the request.

Note that this listing includes an additional "majorMinorVersion" tag
that
is a legacy of the pre-standardized implementation. You can omit it
if your
forms do not use version attributes or if you are targeting ODK
Collect 1.2
and newer clients. ODK Collect 1.2 supports string-valued versions
and is
more robust w.r.t. versions. If you do need to work with 1.1.7, and
do need
to support numeric version strings, you will need to include
non-standard
tag and it should contain the same value as that returned by the
version
tag.

Note that ODK Aggregate 1.x falls back to the older pre-ODK-Collect
1.1.7
format used with ODK Aggregate 0.9.x (
http://opendatakit.appspot.com/formList ) when the OpenRosa header
version
tag is omitted.

Mitch

On Fri, Jun 8, 2012 at 10:24 AM, Mitch S mitchellsundt@gmail.com wrote:

Moving the response to this to the opendatakit-developers list.

Mitch

On Fri, Jun 8, 2012 at 9:45 AM, Joaquín Blaya < joaquinblaya@gmail.com> wrote:

I download ODK-Collect 1.1.7 and are using the instruccions from
OpenMRS
to get the formlist and upload forms
(
https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide
)

However, I couldn't get the form list to be downloaded. Our servers
form
list is here and it works (the xml is at the end of the email)

http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

So I placed
Protocol OpenRosa 1.0,
Server http://dev.ehs.cl/sisal
the appropriate username and password
Form List

Path /moduleServlet/xforms/xformDownload?target=xformslist or /moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

and when I hit Get Blank Form, it says connecting to server, and
then
returns a blank screen almost immediately. I tried connecting to
another
server and same thing happens.

Any ideas why this could happen?

Joaquín

<?xml version='1.0' encoding='UTF-8' ?> 2 Formulario de Prueba 3 Indicación de anticonceptivos hormonales o DIU 5 Entrega de Metodo Anticonceptivo ya indicado 6 Consejería en Salud Sexual y Salud

Reproductiva

7 Prueba de calcular

Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org

On Thu, Jun 7, 2012 at 5:17 AM, Samuel T. Mbugua <sthaiya@gmail.com wrote:

To use collect only and connect to openmrs which has xforms module
installed, this page will guide you on the URLs you need.

https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide

This I tested last with odkCollect version 1.1.6 so not sure
whether it
will work with 1.1.7.

Sam

On 06/05/2012 08:01 PM, Joaquín Blaya wrote:

Hey guys,
Just wanted to ping you to see about the ODK Collect/Clinic version
that connects to OpenMRS, any updates?

Thanks,

Joaquín


Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

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

--
If we keep uppermost in our minds the unkind and unjust acts of others, we
shall find it impossible to love them as Christ has loved us; but if our
thoughts dwell upon the wondrous love and pity of Christ for us, the same
spirit will flow out to others.

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

URGH. formList ...

··· On Mon, Jun 25, 2012 at 2:41 PM, Mitch S wrote:

RE: 1.1.6 -- yes, you need to modify the code.

RE: formsList vs. xformsList --- Waylon's description is correct.

ODK Collect always uses formsList (or, if 1.1.7 and later, whatever server
setting you configure).

Aggregate determines whether it is being contacted by a legacy ODK Collect
1.1.5 or earlier app by the absence of the OpenRosa version header; if that
header is missing Aggregate falls back to the pre-standard 0.9.x formsList
version (and so browsing to /formsList in a browser returns that older
version).

ODK Collect 1.1.6 and newer send the OpenRosa version header and receive
the OpenRosa-compliant list (also presented if you browse to xformsList --
so it is easy to debug with a browser).

ODK Collect 1.1.6 and 1.1.7 are not fully OpenRosa compliant and expect
the majorMinorVersion tag to contain the version. The version must be
numeric.

ODK Collect 1.2 is OpenRosa compliant and looks for the version tag and
falls back to the majorMinorVersion tag if that is not present. The version
can be a string.

In general, if you are using versions, you should be using Collect 1.2 and
Aggregate 1.0.4 or later.

I believe Aggregate 1.0.4 complies with the OpenRosa standard (with the
caveat that version must be numeric).

Mitch

On Tue, Jun 12, 2012 at 11:05 PM, Daniel Kayiwa kayiwadaniel@gmail.comwrote:

Hi Joaquin,

Can you try append this to the url? &format=withurl

On Wed, Jun 13, 2012 at 12:04 AM, Joaquín Blaya joaquinblaya@gmail.comwrote:

So, in Collect 1.1.6, is the only way to change that formList to
something that OpenMRS has such as xformDownloadList?uname=.... is by
changing it in the code?

Joaquín

On Tue, Jun 12, 2012 at 3:57 PM, W. Brunette wbrunette@gmail.comwrote:

Prabhas,

I believe that collect calls "formList" and Aggregate figures out
which kind of call it is based off the request coming in (checks for
what version of openrosa the request is). The xformList url is mainly
for debugging and demonstrating the differences (like Mitch did
above).

http://code.google.com/p/opendatakit/source/browse/src/main/java/org/opendatakit/aggregate/servlet/FormListServlet.java?repo=aggregate

Cheers,
Waylon

On Tue, Jun 12, 2012 at 11:31 AM, Prabhas Pokharel prabhas.pokharel@gmail.com wrote:

Mitch, thanks for that response... clarifies a question I had on the
formhub
side as well, a little. formhub exposes formLists (that look
like http://opendatakit.appspot.com/formList rather
than http://opendatakit.appspot.com/xformsList), and everything is
working
fine with ODK Collect 1.1.7 (except media downloads). We are planning
to
support both going forward, which you have confirmed as the right
decision.

Question: when and how does ODK Collect decide to use formList vs.
xformsList as the formList endpoint? (asking from the server-side
developer
angle).

cheers,
--p

On Friday, June 8, 2012 1:27:58 PM UTC-4, Mitch wrote:

Moved this thread off of the opendatakit list...

You should read the OpenRosa specs here:
https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaAPI

You have not implemented the form list API in a conforming manner:
https://bitbucket.org/javarosa/javarosa/wiki/FormListAPI

ODK Aggregate's OpenRosa compliant forms list looks like this:
http://opendatakit.appspot.com/xformsList It is returned when the
OpenRosa
1.0 version header is present in the request.

Note that this listing includes an additional "majorMinorVersion"
tag that
is a legacy of the pre-standardized implementation. You can omit it
if your
forms do not use version attributes or if you are targeting ODK
Collect 1.2
and newer clients. ODK Collect 1.2 supports string-valued versions
and is
more robust w.r.t. versions. If you do need to work with 1.1.7, and
do need
to support numeric version strings, you will need to include
non-standard
tag and it should contain the same value as that returned by the
version
tag.

Note that ODK Aggregate 1.x falls back to the older pre-ODK-Collect
1.1.7
format used with ODK Aggregate 0.9.x (
http://opendatakit.appspot.com/formList ) when the OpenRosa header
version
tag is omitted.

Mitch

On Fri, Jun 8, 2012 at 10:24 AM, Mitch S mitchellsundt@gmail.com wrote:

Moving the response to this to the opendatakit-developers list.

Mitch

On Fri, Jun 8, 2012 at 9:45 AM, Joaquín Blaya < joaquinblaya@gmail.com> wrote:

I download ODK-Collect 1.1.7 and are using the instruccions from
OpenMRS
to get the formlist and upload forms
(
https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide
)

However, I couldn't get the form list to be downloaded. Our
servers form
list is here and it works (the xml is at the end of the email)

http://dev.ehs.cl/sisal/moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

So I placed
Protocol OpenRosa 1.0,
Server http://dev.ehs.cl/sisal
the appropriate username and password
Form List

Path /moduleServlet/xforms/xformDownload?target=xformslist or /moduleServlet/xforms/xformDownload?target=xformslist&uname=jblaya&pw=Collect321

and when I hit Get Blank Form, it says connecting to server, and
then
returns a blank screen almost immediately. I tried connecting to
another
server and same thing happens.

Any ideas why this could happen?

Joaquín

<?xml version='1.0' encoding='UTF-8' ?> 2 Formulario de Prueba 3 Indicación de anticonceptivos hormonales o

DIU

5 Entrega de Metodo Anticonceptivo ya indicado 6 Consejería en Salud Sexual y Salud

Reproductiva

7 Prueba de calcular

Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org

On Thu, Jun 7, 2012 at 5:17 AM, Samuel T. Mbugua < sthaiya@gmail.com> wrote:

To use collect only and connect to openmrs which has xforms module
installed, this page will guide you on the URLs you need.

https://wiki.openmrs.org/display/docs/XForms+Module+External+Applications+Guide

This I tested last with odkCollect version 1.1.6 so not sure
whether it
will work with 1.1.7.

Sam

On 06/05/2012 08:01 PM, Joaquín Blaya wrote:

Hey guys,
Just wanted to ping you to see about the ODK Collect/Clinic
version
that connects to OpenMRS, any updates?

Thanks,

Joaquín


Gerente de Desarrollo, eHealth Systems
Research Fellow, Escuela de Medicina de Harvard
Moderador, GHDOnline.org

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

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

--
If we keep uppermost in our minds the unkind and unjust acts of others,
we shall find it impossible to love them as Christ has loved us; but if our
thoughts dwell upon the wondrous love and pity of Christ for us, the same
spirit will flow out to others.

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

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