Form Builder - http submissions

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

Form Builder - http submissions

JeffL

We notice that the URL in the http submission section of the form builder has
to conform to a fixed (or hard wired) address. Is there a lot involved in
making this field a xpath expression. We have tried to use a variable name
($xxx) but this adds the value as an absolute. We are passing the address into
the form at runtime dependent on dynamic servers.

Can you provide any pointers as to where we can look into this in the code. Or
is there an architectural reason for not using xpath.

Jeff


--
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: Form Builder - http submissions

Hank Ratzesberger
Hi Jeff,

Outside of Formbuild/Formrunner, you can use ATV's such as {$myvar}.

Did you try to enclose your variable in braces {}?

Not sure if you have the option of using the resource element
(not attribute) which would let you calculate the value using
data in your model.

http://www.w3.org/TR/xforms11/#submit-resource

Not that I've answered your question...

--hank


On Sep 14, 2009, at 5:44 PM, JeffL wrote:

>
> We notice that the URL in the http submission section of the form  
> builder has
> to conform to a fixed (or hard wired) address. Is there a lot  
> involved in
> making this field a xpath expression. We have tried to use a  
> variable name
> ($xxx) but this adds the value as an absolute. We are passing the  
> address into
> the form at runtime dependent on dynamic servers.
>
> Can you provide any pointers as to where we can look into this in  
> the code. Or
> is there an architectural reason for not using xpath.
>
> Jeff
>
> --
> 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
Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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: Form Builder - http submissions

Erik Bruchez
Administrator
In reply to this post by JeffL
Jeff,

The HTTP Services dialog is under
RESOURCES/forms/orbeon/builder/form/dialog-services.xml. If you are
getting the source from git, just search for that file, otherwise you
will find it in orbeon-resources-private.jar.

One possibility is for you to use an AVT in the value of the path, e.g.:

  {xxforms:property('org.example.service.url')}/rest/of/path

In your properties-local.xml, you could then write:

  <property as="xs:anyURI" name="org.example.service.url"
value="http://my.server.com/foo"/>

This won't work out of the box though because dialog-services.xml
validates the field as a URL, and I don't think adding curly braces
will pass validation. So you could disable validation in that file and
see if that flies.

-Erik

On Mon, Sep 14, 2009 at 5:44 PM, JeffL <[hidden email]> wrote:

>
> We notice that the URL in the http submission section of the form builder has
> to conform to a fixed (or hard wired) address. Is there a lot involved in
> making this field a xpath expression. We have tried to use a variable name
> ($xxx) but this adds the value as an absolute. We are passing the address into
> the form at runtime dependent on dynamic servers.
>
> Can you provide any pointers as to where we can look into this in the code. Or
> is there an architectural reason for not using xpath.
>
> Jeff
>
>
> --
> 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