Form Builder and Web Services in Actions

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

Form Builder and Web Services in Actions

GSL
Hi all.

I'm new with Orbeon Form Builder.

I've create a new form (http://www.orbeon.com/orbeon/fr/orbeon/builder/edit/5c399154e182265f7c63118bd6312920) with:
+two controls: a text (control-1) and a list (control-2)
+one http service, that works (the test button gets a good response)
+one action: this action gets de value of control-1, calls to the web service, and write the result in the other control (a list).

The problem is that I write a value in control-1, the service is called, but there is no change in control-2.

Any idea?

In the other hand, I download a trial of Orbeon Forms PE (3.8.0.201005141841 PE), and, in Form Builder, there is "Edit Source" option in menu, but in your version in Internet (http://www.orbeon.com/orbeon/fr/orbeon/builder/ - 3.9.0.rc1.201103231915 PE) there is no "Edit Source" option. Is this a bug, or is that in the following versions that I downloaded is not an available option "Edit Source"?

Also, need to know if is possible in Form Builder, to create an action in which, instead of invoking a service, run a javascript function, for example.

Thank you!
Reply | Threaded
Open this post in threaded view
|

Re: Form Builder and Web Services in Actions

Erik Bruchez
Administrator
> I've create a new form

> (http://www.orbeon.com/orbeon/fr/orbeon/builder/edit/5c399154e182265f7c63118bd6312920)
> with:
> +two controls: a text (control-1) and a list (control-2)
> +one http service, that works (the test button gets a good response)
> +one action: this action gets de value of control-1, calls to the web
> service, and write the result in the other control (a list).
>
> The problem is that I write a value in control-1, the service is called, but
> there is no change in control-2.
>
> Any idea?
>
> In the other hand, I download a trial of Orbeon Forms PE (3.8.0.201005141841
> PE), and, in Form Builder, there is "Edit Source" option in menu, but in
> your version in Internet (http://www.orbeon.com/orbeon/fr/orbeon/builder/ -
> 3.9.0.rc1.201103231915 PE) there is no "Edit Source" option. Is this a bug,
> or is that in the following versions that I downloaded is not an available
> option "Edit Source"?
In the online version we have disabled Edit Source for security reasons.

> Also, need to know if is possible in Form Builder, to create an action in
> which, instead of invoking a service, run a javascript function, for
> example.

You can with the <xxforms:script> action, but have to write some
XForms code by hand to hook this up:

http://wiki.orbeon.com/forms/doc/developer-guide/xforms-actions/actions-script-action

-Erik

>
> Thank you!
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Form-Builder-and-Web-Services-in-Actions-tp3446895p3446895.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
GSL
Reply | Threaded
Open this post in threaded view
|

Re: Form Builder and Web Services in Actions

GSL
Thanks Erik.

I'll test the javascript tip.

I've solved the first question about ws, too. The problem was the namespaces. I've used "*:" to reference all nodes in configuration and now control-2 shows ws response.

And another question:

I need to install Orbeon Forms on High Availability scenario, with a farm of two web servers with Orbeon Forms (with load balanced to distribute user request across the multiple web-servers) and two database servers for the persistence layer (both for storing the forms created with Orbeon Form Builder and data generated by filling in forms published). Is it possible to configure Orbeon to user eXist database in cluster?

I have not found any documentation that explains how to install Orbeon Forms with this scenario, only one question/answers (http://orbeon-forms-ops-users.24843.n4.nabble.com/Orbeon-Deployment-in-Cluster-td2281227.html) in which it says that there is a problem with some version of a base-product specific (JBoss 5).

Please, could you tell me which is the configuration of products you have test to install Orbeon Forms in a High Availability scenario (web servers and database servers)?

Thank you very much.
Reply | Threaded
Open this post in threaded view
|

Re: Re: Form Builder and Web Services in Actions

Erik Bruchez
Administrator
We have never tried the eXist db clustering features. I see some
information here:

http://exist.sourceforge.net/cluster.html

Best would be to ask the eXist support forums/mailing-list for this part.

We ourselves have not deployed Orbeon in such an environment, but some
customers have.

The key point is to that whatever type of load-balancing you are using
uses sticky sessions. In other words, once a specific user has started
interacting with a specific machine, subsequent requests (including
Ajax requests) should reach that same machine. This is because
currently state kept by Orbeon Forms is not replicable across
machines.

-Erik

On Mon, Apr 18, 2011 at 11:48 PM, GSL <[hidden email]> wrote:

> Thanks Erik.
>
> I'll test the javascript tip.
>
> I've solved the first question about ws, too. The problem was the
> namespaces. I've used "*:" to reference all nodes in configuration and now
> control-2 shows ws response.
>
> And another question:
>
> I need to install Orbeon Forms on High Availability scenario, with a farm of
> two web servers with Orbeon Forms (with load balanced to distribute user
> request across the multiple web-servers) and two database servers for the
> persistence layer (both for storing the forms created with Orbeon Form
> Builder and data generated by filling in forms published). Is it possible to
> configure Orbeon to user eXist database in cluster?
>
> I have not found any documentation that explains how to install Orbeon Forms
> with this scenario, only one question/answers
> (http://orbeon-forms-ops-users.24843.n4.nabble.com/Orbeon-Deployment-in-Cluster-td2281227.html)
> in which it says that there is a problem with some version of a base-product
> specific (JBoss 5).
>
> Please, could you tell me which is the configuration of products you have
> test to install Orbeon Forms in a High Availability scenario (web servers
> and database servers)?
>
> Thank you very much.
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Form-Builder-and-Web-Services-in-Actions-tp3446895p3459599.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
GSL
Reply | Threaded
Open this post in threaded view
|

Re: Re: Form Builder and Web Services in Actions

GSL
Thanks Erik.