Hello all,
I have a trigger that submits my form. I am running it in the xforms sandbox. How to I set up the datasource in the built in exist database? This is the submission code that i want to execute: <xforms:submission id="save-submission" ref="instance('data-instance')" action="/exist/rest/db/orbeon/xforms-survey/survey.xml" method="put" replace="none"> <xforms:message ev:event="xforms-submit-error" level="modal">An error occurred while submitting the form! </xforms:message> </xforms:submission> Any ideas? |
>
> Hello all, > > I have a trigger that submits my form. I am running it in the xforms > sandbox. How to I set up the datasource in the built in exist database? John, One thing that you may find helpful is the eXist gui. You can run it right from the http://exist-db.org/ website (java webstart). Then you can set up users and rights, and check on what you submitted. The url in your example looks like it should work. The url to connect to your db, something like xmldb:exist://localhost:8080/orbeon/exist/xmlrpc But I understand that the path will be created, if it does not exist, when you put a resource. So, I think your submission should work. --Hank > This is the submission code that i want to execute: > > <xforms:submission id="save-submission" ref="instance('data-instance')" > action="/exist/rest/db/orbeon/xforms-survey/survey.xml" > method="put" replace="none"> > <xforms:message ev:event="xforms-submit-error" > level="modal">An error occurred while submitting the form! </xforms:message> > </xforms:submission> > > Any ideas? > -- > View this message in context: http://www.nabble.com/Save-submission-tp25201296p25201296.html > Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com. > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Hank, i got the save submission working, but i still can't access the database?!?
I tried entering in the address bar of the browser = xmldb:exist://localhost:8080/orbeon/exist/xmlrpc It would be good to figure this out. But firefox says it cannot open that location? If i just wanted to use the exist sandbox to show the xml in the database for this what would be the "resource url" and the xquery to execute. The root element in the xml is <data> Regards, John.
|
Hi John, localhost:8080 is just a guess, what a default Tomcat installation will give you. What url do you post to? You can also "find" the db using a browser. Did you try to point your browser to http://localhost/exist/rest/db or http://my.domain.com/exist/rest/db Where you might see the collections as a list of links. Hope that helps, Hank > > Hi Hank, i got the save submission working, but i still can't access the > database?!? > > I tried entering in the address bar of the browser = > xmldb:exist://localhost:8080/orbeon/exist/xmlrpc > > It would be good to figure this out. > > But firefox says it cannot open that location? > > If i just wanted to use the exist sandbox to show the xml in the database > for this what would be the "resource url" and the xquery to execute. The > root element in the xml is <data> > > Regards, > > John. > > > > Hank Ratzesberger wrote: >> >>> >>> Hello all, >>> >>> I have a trigger that submits my form. I am running it in the xforms >>> sandbox. How to I set up the datasource in the built in exist database? >> >> John, >> >> One thing that you may find helpful is the eXist gui. You can run it >> right from the http://exist-db.org/ website (java webstart). Then you >> can set up users and rights, and check on what you submitted. >> >> The url in your example looks like it should work. The url to connect >> to your db, something like >> xmldb:exist://localhost:8080/orbeon/exist/xmlrpc >> >> But I understand that the path will be created, if it does not exist, >> when you put a resource. So, I think your submission should work. >> >> --Hank >> >>> This is the submission code that i want to execute: >>> >>> <xforms:submission id="save-submission" ref="instance('data-instance')" >>> >>> action="/exist/rest/db/orbeon/xforms-survey/survey.xml" >>> method="put" replace="none"> >>> <xforms:message ev:event="xforms-submit-error" >>> level="modal">An error occurred while submitting the form! >>> </xforms:message> >>> </xforms:submission> >>> >>> Any ideas? >>> -- >>> View this message in context: >>> http://www.nabble.com/Save-submission-tp25201296p25201296.html >>> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com. >>> >>> >> >> >> >> >> -- >> You receive this message as a subscriber of the [hidden email] mailing >> list. >> To unsubscribe: mailto:[hidden email] >> For general help: mailto:[hidden email]?subject=help >> OW2 mailing lists service home page: http://www.ow2.org/wws >> >> > > -- > View this message in context: http://www.nabble.com/Save-submission-tp25201296p25208476.html > Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com. > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |