how to query orbeon's exist db

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

how to query orbeon's exist db

pouyan

My form data saved in exist db (the one shipped with orbeon)
My guess is it is saved here, how can I query (read) saved data

../w9/form/831113e3ef799f2c9f57ee0b10f789a8951360ba.bin

Reply | Threaded
Open this post in threaded view
|

Re: how to query orbeon's exist db

Erik Bruchez
Administrator
From where do you want to query it? From the command-line? From a UI? From your own application?

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: how to query orbeon's exist db

pouyan
form UI is very useful for my testing however I need to access it from my application (java application) in same web server as orbeon and exist db

Thank you  
Reply | Threaded
Open this post in threaded view
|

Re: how to query orbeon's exist db

pouyan
I use following document to read from orbeon's exist database
http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/persistence-api

The problem is I don't have "data.xml" in
Reply | Threaded
Open this post in threaded view
|

Re: how to query orbeon's exist db

Erik Bruchez
Administrator
For the w9 sample, there is no data.xml because there is no data saved by default. You should see data with other forms like the Bookshelf form.

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: how to query orbeon's exist db

pouyan
Thanks Erik for explanation, I understand data.xml contains default value and w9 sample doesn't have default value, How can I read data which is saved by w9 form?

Does w9 data save under
/data/f7cfea2ff8cdd51b1493e66c5c97fecebed4220f/831113e3ef799f2c9f57ee0b10f789a8951360ba.bin?

What crud I can use to read w9 data , is it something that I can use?
http://localhost:8080/orbeon/fr/service/persistence/crud/orbeon/builder/data/f7cfea2ff8cdd51b1493e66c5c97fecebed4220f/831113e3ef799f2c9f57ee0b10f789a8951360ba.bin

Thx
Reply | Threaded
Open this post in threaded view
|

Re: how to query orbeon's exist db

Erik Bruchez
Administrator
It will write the data under:

    http://localhost:8080/orbeon/exist/rest/db/orbeon/fr/orbeon/w9/data/4a83b4cf2b905fbe105d7e57ddc5597b5e78c0a3/data.xml

where `4a83b4cf2b905fbe105d7e57ddc5597b5e78c0a3` here is the randomly-generated document id associated with this form data. So it will change everytime you create new form data.

-Erik