Go button

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

Go button

msalmadan@yahoo.com
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.

   
Reply | Threaded
Open this post in threaded view
|

Re: Go button

Alessandro Vernet
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.
You will find more on those properties on:

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

Re: Re: Go button

msalmadan@yahoo.com
Thanks Alex.
 
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.
 
Thanks,
Majeed Almadan

--- On Thu, 4/2/09, Alessandro Vernet <[hidden email]> wrote:
From: Alessandro Vernet <[hidden email]>
Subject: [ops-users] Re: Go button
To: [hidden email]
Date: Thursday, April 2, 2009, 7:39 PM

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.

You will find more on those properties on:

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

Re: Go button

msalmadan@yahoo.com
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



msalmadan@yahoo.com 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.

   
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Go button

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

Re: Re: Go button

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

Re: Go button

msalmadan@yahoo.com
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.




msalmadan@yahoo.com 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.

   
Reply | Threaded
Open this post in threaded view
|

Re: Re: Go button

msalmadan@yahoo.com
Hello,
 
I tried to to get the URL from a node  in form instance and modifying the property file as follow but still does not work for me.
 
    <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>
 
What am I doing wrong?
 
Thanks

--- On Tue, 4/14/09, [hidden email] <[hidden email]> wrote:
From: [hidden email] <[hidden email]>
Subject: [ops-users] Re: Go button
To: [hidden email]
Date: Tuesday, April 14, 2009, 10:54 AM

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.





[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.
> 
>    
> 
> 

-- 
View this message in context:
http://www.nabble.com/Go-button-tp22793344p23042217.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



--
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: Re: Re: Go button

Alessandro Vernet
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>
This looks right to me. How did you get the
<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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Go button

msalmadan@yahoo.com
Hi Alex,
 
Yes, I get this gotourl>http://www.yahoo.com</gotourl> in  in by with Advanced / Edit Source like you said. Trying to use  the validation setting dialog  to enter an initial value it did not wok. It does not seems to accept ":" for string or anyUrl type. So I had to edit the source.
 
Question. What is the Initial Value field do?
Thanks for your help in advance
 
 
Thanks,
Majeed
 
--- On Fri, 4/17/09, Alessandro Vernet <[hidden email]> wrote:
From: Alessandro Vernet <[hidden email]>
Subject: [ops-users] Re: Re: Re: Go button
To: [hidden email]
Date: Friday, April 17, 2009, 3:14 AM

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>

This looks right to me. How did you get the
<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

form.txt (22K) Download Attachment
properties-form-runner.xml (9K) Download Attachment