Property expansion in submission url

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

Property expansion in submission url

bwallis42
This post was updated on .
Can I do this:

<xf:submission id="EpisodeDetails-submission" class="fr-service"
       resource="{xxf:property('im.rest.uri.patient'}/patient/{xxf:get-request-parameter('patientId')}/episode/{xxf:get-request-parameter ('episodeId')}"
       method="get"
       serialization="none"
       mediatype="none"/>
where I have a property defined for im.rest.url.patient in my
properties-local.xml file.

    <property as="xs:string" name="im.rest.uri.patient" value="http://localhost:8080/patientapi" />


The other two function for the request parameters work when I hardcode the
rest of the URL but if I use a property for the http:host part then I don't
seem to get any request at all.

Is this a valid use of xxf:property for the resource in a submission?

thanks
brian...


--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orbeon+unsubscribe@googlegroups.com.
To post to this group, send email to orbeon@googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Property expansion in submission url

bwallis42
Edited original post again to add back the code in raw tags.

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Property expansion in submission url

bwallis42
In reply to this post by bwallis42
I just noticed a type in my question. I have
"{xxf:property('im.rest.uri.patient'}" where it should be
"{xxf:property('im.rest.uri.patient')}".

It still doesn't work with the correct expression. Also, the http service
editor doesn't like that for the URL field (missing or incorrect value) so
you have to add the URL in the source editor.

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Property expansion in submission url

bwallis42
This post was updated on .
Spoke too soon. With the corrected URL added via the source editor, it does
work. So I now have this source

<xf:submission id="EpisodeDetails-submission" class="fr-service"
                           resource="{xxf:property('im.rest.uri.patient')}/patient/{xxf:get-request-parameter('patientId')}/episode/{xxf:get-request-parameter ('episodeId')}"
                           method="get"
                           serialization="none"
                           mediatype="none"/>

and this works.

But the http service editor still doesn't like it. It seems to be parsing
the string to check if it looks like a URL without expanding the AVT
expressions.

Is this something that could be fixed?

thanks
brian...


--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orbeon+unsubscribe@googlegroups.com.
To post to this group, send email to orbeon@googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Property expansion in submission url

bwallis42
I've edited the post and added the expression as raw again.

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Property expansion in submission url

Erik Bruchez
Administrator
Yes, this should definitely work.

-Erik

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].