Hi, I am submitting a form instance from a form in Orbeon
Builder to another form using following code <xforms:submission id="FTB-submit-Type3"
ref="instance('fr-form-instance')" method="post"
replace="all"
resource="/fr/BGSW-CER-Type3/BGSW-CER-Type3/new/"
xxforms:target="_blank"
xxforms:show-progress="false"/> And <xforms:trigger xmlns:xforms="http://www.w3.org/2002/xforms"
id="control-37-control"
bind="control-37-bind">
<xforms:label class="buttonCSS"
ref="$form-resources/control-37/label"/>
<xforms:help
ref="$form-resources/control-37/help"/>
<xforms:alert ref="$fr-resources/detail/labels/alert"/>
<xforms:send xmlns:ev="http://www.w3.org/2001/xml-events"
ev:event="DOMActivate" submission="FTB-submit-Type3"/> </xforms:trigger> Following error is thrown when I click the button to submit
the form “An empty sequence is not allowed as the value of variable
$document” Regards, Naresh Vaddepalli DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. -- 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 |
Administrator
|
Naresh,
If you post to a form, the URL must include the document id, e.g. it must look like: /fr/BGSW-CER-Type3/BGSW-CER-Type3/new/ da50a682a22adecaf35f5d670f440656/ That document id comes from an internal location: xxforms:instance('fr-parameters-instance')/document -Erik On Apr 16, 2009, at 6:50 AM, Naresh Vaddepalli wrote: > Hi, > > I am submitting a form instance from a form in Orbeon Builder to > another form using following code > > <xforms:submission id="FTB-submit-Type3" ref="instance('fr-form- > instance')" method="post" > replace="all" > resource="/fr/BGSW-CER-Type3/BGSW-CER- > Type3/new/" > xxforms:target="_blank" > xxforms:show-progress="false"/> > > And > > <xforms:trigger xmlns:xforms="http://www.w3.org/2002/xforms" > id="control-37-control" > bind="control-37- > bind"> > <xforms:label class="buttonCSS" > ref="$form-resources/control-37/label"/> > <xforms:help ref="$form-resources/ > control-37/help"/> > <xforms:alert ref="$fr-resources/detail/ > labels/alert"/> > <xforms:send xmlns:ev="http://www.w3.org/2001/xml-events > " ev:event="DOMActivate" submission="FTB-submit-Type3"/> > </xforms:trigger> > > Following error is thrown when I click the button to submit the form > “An empty sequence is not allowed as the value of variable $document” > > > Regards, > Naresh Vaddepalli > DISCLAIMER ========== This e-mail may contain privileged and > confidential information which is the property of Persistent Systems > Ltd. It is intended only for the use of the individual or entity to > which it is addressed. If you are not the intended recipient, you > are not authorized to read, retain, copy, print, distribute or use > this message. If you have received this communication in error, > please notify the sender and delete all copies of this message. > Persistent Systems Ltd. does not accept any liability for virus > infected mails. > > > -- > 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 all,
I am putting together a form demo for a client and using Orboen for the first time. I have been reading the documentation and I am surprised by the lack of one or more practical example with navigation from page to page while filling in a data model. For example, let's say I have a data model with two elements: <Name> <GivenName/> <FamilyName/> </Name> and a page flow file: <config xmlns="http://www.orbeon.com/oxf/controller"> <page path-info="/myapp/1" view="1.xhtml" /> <page path-info="/myapp/2" view="2.xhtml" /> <page path-info="/myapp/3" view="3.xhtml" /> <epilogue url="oxf:/config/epilogue.xpl" /> </config> Page 1.xhtml collects GivenName page 2.xhtml collects FamilyName page 3.xhtml displays a summary with both names. I have a solution in which I move from page to page using trigger that first saves the data and then loads next page (each page loads the data on startup using <xforms:send ev:event="xforms-ready" .....>). <xforms:trigger> <xforms:label>Continue</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:send submission="save-data"/> <xforms:load resource="2"/> </xforms:action> </xforms:trigger> All I want to do is to collect data on a page and move on. I do not need XML pipelines to transform data. My question is: is there a (simple) way to move from page to page collecting data into one model without using XML pipelines (and not the solution above)? Suggestions much appreciated! Cheers, Trond -- 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 winmail.dat (7K) Download Attachment |
Administrator
|
You can use xforms:switch, as shown in the (very minimal) "Wizard w/
Switch" example. We hope to implement support for a better wizard-like system in Form Runner at some point. -Erik On Apr 16, 2009, at 4:58 PM, Trond Hjelmaas wrote: > Hi all, > > I am putting together a form demo for a client and using Orboen for > the first time. > I have been reading the documentation and I am surprised by the lack > of one or more practical example with navigation from page to page > while filling in a data model. > > For example, let's say I have a data model with two elements: > > <Name> > <GivenName/> > <FamilyName/> > </Name> > > and a page flow file: > > <config xmlns="http://www.orbeon.com/oxf/controller"> > <page path-info="/myapp/1" view="1.xhtml" /> > <page path-info="/myapp/2" view="2.xhtml" /> > <page path-info="/myapp/3" view="3.xhtml" /> > <epilogue url="oxf:/config/epilogue.xpl" /> > </config> > > Page 1.xhtml collects GivenName > page 2.xhtml collects FamilyName > page 3.xhtml displays a summary with both names. > > I have a solution in which I move from page to page using trigger > that first saves the data and then loads next page (each page loads > the data on startup using <xforms:send ev:event="xforms- > ready" .....>). > > <xforms:trigger> > <xforms:label>Continue</xforms:label> > <xforms:action ev:event="DOMActivate"> > <xforms:send submission="save-data"/> > <xforms:load resource="2"/> > </xforms:action> > </xforms:trigger> > All I want to do is to collect data on a page and move on. I do not > need XML pipelines to transform data. > > My question is: > is there a (simple) way to move from page to page collecting data > into one model without using XML pipelines (and not the solution > above)? > Suggestions much appreciated! > Cheers, > Trond > <winmail.dat> > -- > 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 Erik,
Thanks for your reply. The switch example is an option, even though it is one big xhtml page rather than multiple pages. With the future better support you are referring to, would that be using another approach than XML pipelines? Also, would you have access to a simple example of a multipage form using (a simple) XML pipeline? Cheers, Trond ________________________________ From: Erik Bruchez [mailto:[hidden email]] Sent: Fri 17/04/2009 10:49 To: [hidden email] Subject: [ops-users] Re: Multipage forms, how to? You can use xforms:switch, as shown in the (very minimal) "Wizard w/ Switch" example. We hope to implement support for a better wizard-like system in Form Runner at some point. -Erik On Apr 16, 2009, at 4:58 PM, Trond Hjelmaas wrote: > Hi all, > > I am putting together a form demo for a client and using Orboen for > the first time. > I have been reading the documentation and I am surprised by the lack > of one or more practical example with navigation from page to page > while filling in a data model. > > For example, let's say I have a data model with two elements: > > <Name> > <GivenName/> > <FamilyName/> > </Name> > > and a page flow file: > > <config xmlns="http://www.orbeon.com/oxf/controller"> > <page path-info="/myapp/1" view="1.xhtml" /> > <page path-info="/myapp/2" view="2.xhtml" /> > <page path-info="/myapp/3" view="3.xhtml" /> > <epilogue url="oxf:/config/epilogue.xpl" /> > </config> > > Page 1.xhtml collects GivenName > page 2.xhtml collects FamilyName > page 3.xhtml displays a summary with both names. > > I have a solution in which I move from page to page using trigger > that first saves the data and then loads next page (each page loads > the data on startup using <xforms:send ev:event="xforms- > ready" .....>). > > <xforms:trigger> > <xforms:label>Continue</xforms:label> > <xforms:action ev:event="DOMActivate"> > <xforms:send submission="save-data"/> > <xforms:load resource="2"/> > </xforms:action> > </xforms:trigger> > All I want to do is to collect data on a page and move on. I do not > need XML pipelines to transform data. > > My question is: > is there a (simple) way to move from page to page collecting data > into one model without using XML pipelines (and not the solution > above)? > Suggestions much appreciated! > Cheers, > Trond > <winmail.dat> > -- > 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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 winmail.dat (9K) Download Attachment |
Administrator
|
Trond,
On Thu, Apr 16, 2009 at 9:55 PM, Trond Hjelmaas <[hidden email]> wrote: > With the future better support you are referring to, would that be using another approach than XML pipelines? > Also, would you have access to a simple example of a multipage form using (a simple) XML pipeline? I think that you are looking for the ability to pass an instance from one page to another. Assuming users fill part of the instance on /myapp/1, in that page you can post the instance partially filled to page 2 with an <xforms:submission method="post" resource="/myapp/2" replace="all">. Then in the second page you "retrieve" that instance with <xforms:instance id="..." src="input:instance"/>. The "input:instance" means "use the instance that was posted to this page". Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 |