Using button for controlling with orbeon

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

Using button for controlling with orbeon

hedrick.aa
Hi,

I've created a form in orbeon and i desire to add a button with controls(
which after click on it, it'll update the data forms in an external
database). I use an external Postgresql database which contains  one table
named "unite" with 3 fields(Id,Code,Libelle) that i want to update with
that orbeon's form!

Is there someone who can help me?

Regards!

Hedrick



--
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: Using button for controlling with orbeon

Erik Bruchez
Administrator
Hedrick,

I assume you are using Form Runner?

Best would be to use the standard Save or Send buttons. You could either:

* Save button: hook-up your own persistence layer implementation (like
we have for eXist, Oracle, and MySQL) to handle the save.
* Send button: this can post the data to a URL. If you implement a
service responding to that URL, you can then get the submitted data as
XML, extract your fields, and store them into Postresql.

-Erik

On Fri, Aug 20, 2010 at 5:27 AM,  <[hidden email]> wrote:

> Hi,
>
> I've created a form in orbeon and i desire to add a button with controls(
> which after click on it, it'll update the data forms in an external
> database). I use an external Postgresql database which contains  one table
> named "unite" with 3 fields(Id,Code,Libelle) that i want to update with
> that orbeon's form!
>
> Is there someone who can help me?
>
> Regards!
>
> Hedrick
>
>
>
> --
> 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: Using button for controlling with orbeon

hedrick.aa
Erik,

Can you give me a tutorial or an example for using a send button in
orbeon, please? I'm new in orbeon.
Regards!

Hedrick

> Hedrick,
>
> I assume you are using Form Runner?
>
> Best would be to use the standard Save or Send buttons. You could either:
>
> * Save button: hook-up your own persistence layer implementation (like
> we have for eXist, Oracle, and MySQL) to handle the save.
> * Send button: this can post the data to a URL. If you implement a
> service responding to that URL, you can then get the submitted data as
> XML, extract your fields, and store them into Postresql.
>
> -Erik
>
> On Fri, Aug 20, 2010 at 5:27 AM,  <[hidden email]> wrote:
>> Hi,
>>
>> I've created a form in orbeon and i desire to add a button with
>> controls(
>> which after click on it, it'll update the data forms in an external
>> database). I use an external Postgresql database which contains  one
>> table
>> named "unite" with 3 fields(Id,Code,Libelle) that i want to update with
>> that orbeon's form!
>>
>> Is there someone who can help me?
>>
>> Regards!
>>
>> Hedrick
>>
>>
>>
>> --
>> 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: Using button for controlling with orbeon

Erik Bruchez
Administrator
Not exactly a tutorial, but here is some doc:

http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Workflow-send-button

Add the workflow-send button for your form with a property like this
in your properties-local.xml:

<property as="xs:string"  name="oxf.fr.detail.buttons.*.*"
  value="refresh close clear pdf email save workflow-review
collapse-all expand-all workflow-send"/>

Then another property to specify the destination URL:

<property as="xs:anyURI"  name="oxf.fr.detail.send.uri.*.*"
  value="/my/page"/>

The form data will be POST-ed to that URL.

-Erik

On Thu, Aug 26, 2010 at 5:10 AM,  <[hidden email]> wrote:

> Erik,
>
> Can you give me a tutorial or an example for using a send button in
> orbeon, please? I'm new in orbeon.
> Regards!
>
> Hedrick
>
>> Hedrick,
>>
>> I assume you are using Form Runner?
>>
>> Best would be to use the standard Save or Send buttons. You could either:
>>
>> * Save button: hook-up your own persistence layer implementation (like
>> we have for eXist, Oracle, and MySQL) to handle the save.
>> * Send button: this can post the data to a URL. If you implement a
>> service responding to that URL, you can then get the submitted data as
>> XML, extract your fields, and store them into Postresql.
>>
>> -Erik
>>
>> On Fri, Aug 20, 2010 at 5:27 AM,  <[hidden email]> wrote:
>>> Hi,
>>>
>>> I've created a form in orbeon and i desire to add a button with
>>> controls(
>>> which after click on it, it'll update the data forms in an external
>>> database). I use an external Postgresql database which contains  one
>>> table
>>> named "unite" with 3 fields(Id,Code,Libelle) that i want to update with
>>> that orbeon's form!
>>>
>>> Is there someone who can help me?
>>>
>>> Regards!
>>>
>>> Hedrick
>>>
>>>
>>>
>>> --
>>> 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
>
>


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