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

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