name="oxf.fr.detail.submit.buttons.*.*"
name="oxf.fr.detail.submit.go.uri-xpath.*.*" How can utilize thse 2 configuration, as I would like to implement it with orbeon form builder/form runner. Knowing that we have different application and different forms. My goal is to present acknowledgement based on application and form names after a form has been submitted. |
Administrator
|
On Mar 30, 2009, at 2:29 PM, [hidden email] wrote:
> > name="oxf.fr.detail.submit.buttons.*.*" > name="oxf.fr.detail.submit.go.uri-xpath.*.*" > > How can utilize thse 2 configuration, as I would like to implement > it with > orbeon form builder/form runner. Knowing that we have different > application > and different forms. My goal is to present acknowledgement based on > application and form names after a form has been submitted. http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties#TOC-Submit-Dialog---Buttons 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 |
-- 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 |
In reply to this post by msalmadan@yahoo.com
Hi All,
I have been trying to find out how to configure "go button" after submitting. The documentation it state I can do ether statically or dynamically "Submit Dialog - "Go" URI When the "go" button is pressed, users will be taken to the URI specified by the following property. The value of the property is an XPath expression evaluated in the context of the form instance. This allows you both to have a "dynamic" URI (which depends on the initial data or data entered by users) or a "static" URI in the form of a URI between single quote in the XPath expression. <property as="xs:string" name="oxf.fr.detail.submit.go.uri-xpath.*.*" value="/book/details/link"/> " I have replaced the property setting with following line in the properties-form-runner.xml file: <property as="xs:string" name="oxf.fr.detail.submit.go.uri-xpath.*.*" value='/fr/confirm/view.xhtml'/> I can see the code for the Go button say something like this: "<xforms:action ev:event="DOMActivate"> <xxforms:variable name="uri-xpath" select="xxforms:property(string-join(('oxf.fr.detail.submit.go.uri-xpath', $app, $form), '.'))"/> <xforms:load context="xxforms:instance('fr-form-instance')" resource="{saxon:evaluate($uri-xpath)}"/> </xforms:action> " What do I do to do to configure it correctly? Any help is appriciated. Thanks, Majeed
|
Administrator
|
In reply to this post by msalmadan@yahoo.com
Majeed,
On Apr 8, 2009, at 2:57 PM, Majeed Almadan wrote: > The documentation is clear but I am little bit lost on how to apply > it with from runner as the the link would change with each each > application/formtype. can you or anybody how has implmented provide > an example please. When you see this *.* at the end of the properties, it means that you want that value to apply to all the apps/forms. If you have an app call "acme", and you only want that property to apply to the form in the "acme" app, you would write something like oxf.fr.detail.submit.buttons.acme.*. If you have a form "registration" in the "acme" app, and only want the property to apply to that specific form, you'd write oxf.fr.detail.submit.buttons.acme.registration. Does this make sense? 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/ -- 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
|
In reply to this post by msalmadan@yahoo.com
Majeed,
On Apr 13, 2009, at 10:15 AM, [hidden email] wrote: > I have replaced the property setting with following line in the > properties-form-runner.xml file: > > <property as="xs:string" name="oxf.fr.detail.submit.go.uri-xpath.*.*" > value='/fr/confirm/view.xhtml'/> The value of that property is an XPath expression. This allows you to get the URI to go to from a node in your instance. But if you already know what the destination page is, you have to include single quotes around it to denote a string, e.g.: <property as="xs:string" name="oxf.fr.detail.submit.go.uri-xpath.*.*" value="'http://www.google.com/'"/> (Note the double quote to delimit the attribute in XML, and the single quotes inside the double quote to delimit a string in XPath.) 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 |
In reply to this post by msalmadan@yahoo.com
Thanks Alex, both posting make a lot of sense. Just one more question in regard to you comment "This allows you to get the URI to go to from a node in your instance". What is the easiest way to accomplish this when we are using form builder forms? I would like the form designer "a person" to enter the uri or "rul" when they are designing the forms. Basically each form builder might have it own go to page and it is determine by the form builder at design time. Would I have to make use the single text line and make it somehow hidden and read-only, and what is the name of the node "control should be?
Or would I need to set the variable "'oxf.fr.detail.submit.go.uri-xpath" to the traget URL by editing the form builder code? Please advice? Thanks again.
|
-- 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
|
On Thu, Apr 16, 2009 at 9:56 AM, Majeed Almadan <[hidden email]> wrote:
> <property as="xs:string" > name="oxf.fr.detail.submit.go.uri-xpath.*.*" > value="/form/section-1/gotourl"/> > > > <xforms:instance id="fr-form-instance"> > <form> > <section-1> > <control-1/> > <control-2/> > <control-3/> > <email/> > <control-4/> > <gotourl>http://www.yahoo.com</gotourl> > <control-5>school-1</control-5> > </section-1> > <section-2/> > </form> > </xforms:instance> <gotourl>http://www.yahoo.com</gotourl> in that instance? Just curious; did you edit the instance with Advanced / Edit Source? Could you attach your form and properties to your response, so I can reproduce this here? 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 |
-- 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 |