Save submission

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

Save submission

JohnBampton
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?
Reply | Threaded
Open this post in threaded view
|

Re: Save submission

Hank Ratzesberger
>
> 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
Reply | Threaded
Open this post in threaded view
|

Re: Save submission

JohnBampton
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 ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Save submission

Hank Ratzesberger

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