Retrieving FORM_DATA_ID on the client side

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

Retrieving FORM_DATA_ID on the client side

apgoar
I have a custom persistence layer created and working well. IE
    <property as="xs:anyURI"  name="oxf.fr.persistence.app.uri.*.*.*"                              value="http://MyURLGoesHere"/>

All operations with the persistence layer are working fine.

However now I am setting up a Submit Go URL, IE

<property as="xs:string"  name="oxf.fr.detail.submit.go.uri-xpath.*.*"  value="'MyCustomGoURL'"/>

However, 'MyCustomGoURL' needs to know the FORM_DATA_ID value that Orbeon passed in the URL to the persistance layer.

Is there any advice for forwarding the form data id to the "go.uri-xpath" page


- Is there an XForms expression I can add to my go.uri-xpath value that would add the FORM_DATA_ID value to the URL called?
- If not, is there a javascript call on the client side that I can use to get the FORM_DATA_ID? I'm thinking I may be able to use this to set a cookie that is forwarded when the "go.uri-xpath" URL is called.

On the client side, I see quite a big of stuff in the ORBEON.util and ORBEON.xforms spaces, but little of it is documented, I have no idea how much of it is intended for public use, and I do not see the for data id  readily available.



Many thanks,


Andy G
Harding Marketing

Reply | Threaded
Open this post in threaded view
|

Re: Retrieving FORM_DATA_ID on the client side

Erik Bruchez
Administrator
Andy,

The form id is not reliably exposed on the client AFAIR.

What you could do is, as XPath expression in
oxf.fr.detail.submit.go.uri-xpath, use something like:

concat('your path here'/, xxforms:instance('fr-parameters-instance')/form)

xxforms:instance('fr-parameters-instance')/form contains the form id
on the server, although that, too, is kind of unofficial, but it might
work for you.

-Erik

On Mon, Aug 30, 2010 at 3:04 PM, apgoar <[hidden email]> wrote:

>
> I have a custom persistence layer created and working well. IE
>    <property as="xs:anyURI"  name="oxf.fr.persistence.app.uri.*.*.*"
> value="http://MyURLGoesHere"/>
>
> All operations with the persistence layer are working fine.
>
> However now I am setting up a Submit Go URL, IE
>
> <property as="xs:string"  name="oxf.fr.detail.submit.go.uri-xpath.*.*"
> value="'MyCustomGoURL'"/>
>
> However, 'MyCustomGoURL' needs to know the FORM_DATA_ID value that Orbeon
> passed in the URL to the persistance layer.
>
> Is there any advice for forwarding the form data id to the "go.uri-xpath"
> page
>
>
> - Is there an XForms expression I can add to my go.uri-xpath value that
> would add the FORM_DATA_ID value to the URL called?
> - If not, is there a javascript call on the client side that I can use to
> get the FORM_DATA_ID? I'm thinking I may be able to use this to set a cookie
> that is forwarded when the "go.uri-xpath" URL is called.
>
> On the client side, I see quite a big of stuff in the ORBEON.util and
> ORBEON.xforms spaces, but little of it is documented, I have no idea how
> much of it is intended for public use, and I do not see the for data id
> readily available.
>
>
>
> Many thanks,
>
>
> Andy G
> Harding Marketing
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Retrieving-FORM-DATA-ID-on-the-client-side-tp2400778p2400778.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
Reply | Threaded
Open this post in threaded view
|

Re: Retrieving FORM_DATA_ID on the client side

apgoar
Fantastic Erik. That is exactly what I was looking for. I will give it a try.

Thanks for taking the time to reply. I really appreciate it.


Andy