Hi,
Im new in Orbeon and I got a project in my work, in which I should review Orbeon. So I create a simple form(separate and integrated deployment) and it works fine. Then I try to save data into eXist, but I without success. I created one .jsp file in xforms-jsp folder and I followed this instructions http://wiki.orbeon.com/forms/doc/developer-guide/exist-configuration. My code for submit is: <xforms:submission id="submission" ref="eventrating" action="/exist/rest/db/orbeon/eventrating/rating.xml" method="put" replace="none"> <xforms:message ev:event="xforms-submit-error" level="modal">An error occurred while saving! </xforms:message> </xforms:submission> And the button: <xforms:submit submission="submission" appearance="minimal"> <xforms:label><xhtml:img src="/apps/trening/images/save.gif" alt="Save"/><xhtml:span>Save</xhtml:span></xforms:label> </xforms:submit> I try to see results in orbeon.log file, but I dont find it. Where can I see results? So this code dont work. I would like to ask you some questions. 1. Is it necessary to create user for Orbeon forms? Because I didnt create it. 2. Is it necessary use a xpl file to save date from form, woh can I use xpl file in separate, integrate deployment? Where can I declare it? Can you explain me some simple example on save data into eXist, which file I need and which files I should edit. Best. P.S. Sorry for my English... |
Administrator
|
Miroslav,
The tutorial includes an example of how to save into eXist: http://wiki.orbeon.com/forms/doc/developer-guide/orbeon-forms-xforms-tutorial Your code seems fine, at first glance. Try to enable more logging to see whether there is an error: http://wiki.orbeon.com/forms/doc/developer-guide/xforms-logging -Erik On Tue, Feb 28, 2012 at 1:01 AM, Miroslav Polc <[hidden email]> wrote: > Hi, > Im new in Orbeon and I got a project in my work, in which I should review > Orbeon. So I create a simple form(separate and integrated deployment) and it > works fine. Then I try to save data into eXist, but I without success. I > created one .jsp file in xforms-jsp folder and I followed this instructions > http://wiki.orbeon.com/forms/doc/developer-guide/exist-configuration. My > code for submit is: > > <xforms:submission id="submission" ref="eventrating" > action="/exist/rest/db/orbeon/eventrating/rating.xml" > method="put" replace="none"> > <xforms:message ev:event="xforms-submit-error" > level="modal">An error occurred while saving! </xforms:message> > </xforms:submission> > > And the button: > > <xforms:submit submission="submission" appearance="minimal"> > <xforms:label><xhtml:img src="/apps/trening/images/save.gif" > alt="Save"/><xhtml:span>Save</xhtml:span></xforms:label> > </xforms:submit> > > I try to see results in orbeon.log file, but I dont find it. Where can I see > results? > > So this code dont work. I would like to ask you some questions. > 1. Is it necessary to create user for Orbeon forms? Because I didnt create > it. > 2. Is it necessary use a xpl file to save date from form, woh can I use xpl > file in separate, integrate deployment? Where can I declare it? > Can you explain me some simple example on save data into eXist, which file I > need and which files I should edit. > > Best. > > P.S. Sorry for my English... > > > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Save-data-into-eXist-tp4427468p4427468.html > Sent from the Orbeon Forms (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 > -- 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 Erik,
thanks for quick reply. I know about this example and its easy and works well. But if I create form with integrated deploy, this submit doesnt work. I downolad exist db and I need save data(), not rewrite it like in example. I dont understand where is problem with submiting. The thing, what I need is the summary page with saved forms(data) and other one page with form, where can I put data and than save it. Something like yours bookshelf example, but with integreted deploy, it means, that without title Orbeon. Im little bit confused, how I should create it, which and how many files I need create and what it should contains. Your wiki is good, but I miss one complex example, where you explain how I can create integrate or separate deploy with more functionality. For example extend this tutorial http://wiki.orbeon.com/forms/doc/developer-guide/exist-configuration for examples about submition, how create code for save data with external eXist. Or only Im dont know how do it? Miro |
Administrator
|
Miro,
Just reading/saving data with eXist is quite simple, whether eXist is built-in or not, or whether you use integrated/separate deployment there is no difference. The Form Runner Summary page cannot be described in just a few sentences, unfortunately. There is quite a bit involved, including sending a request to a REST API, running XQuery against eXist, doing paging, etc. That's why we did Form Runner, to make this kind of things built-in. If you want to see how Form Runner search works, here are a few relevant files: https://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/persistence/exist/search.xpl https://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/persistence/exist/search.xml https://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/summary/view.xhtml As you can see there is quite a bit of code there. -Erik On Wed, Feb 29, 2012 at 8:25 AM, Miroslav Polc <[hidden email]> wrote: > Hi Erik, > > thanks for quick reply. I know about this example and its easy and works > well. But if I create form with integrated deploy, this submit doesnt work. > I downolad exist db and I need save data(), not rewrite it like in example. > I dont understand where is problem with submiting. > > The thing, what I need is the summary page with saved forms(data) and other > one page with form, where can I put data and than save it. Something like > yours bookshelf example, but with integreted deploy, it means, that without > title Orbeon. Im little bit confused, how I should create it, which and how > many files I need create and what it should contains. > > Your wiki is good, but I miss one complex example, where you explain how I > can create integrate or separate deploy with more functionality. For example > extend this tutorial > http://wiki.orbeon.com/forms/doc/developer-guide/exist-configuration for > examples about submition, how create code for save data with external eXist. > Or only Im dont know how do it? > > Miro > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Save-data-into-eXist-tp4427468p4432039.html > Sent from the Orbeon Forms (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 > -- 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 |