Re: Form populate with data from sql

Posted by Alessandro Vernet on
URL: https://discuss.orbeon.com/Form-populate-with-data-from-sql-tp1678998p1679585.html

Hi,

Let me go over an example:

1. Using the employee sample database in MySQL
(http://dev.mysql.com/doc/employee/en/employee.html).
2. Setup a datasource for MySQL in Tomcat; I named it "mysql".
2. Create two fileds: first-name, last-name, and want to populate
last-name based on the first employee that has that first name the
user typed: http://screencast.com/t/N2E1Nzg4YWMt
3. Create a database service as follows: http://screencast.com/t/MjRiZWJhNjQt
4. Create an action as follows: http://screencast.com/t/MzY1NTZjZjgt
5. Testing the form, type "Georgi" in the first name field, hit tab
and you'll see the last name field populated with "Facello".

I hope this helps,

Alex

On Tue, Mar 23, 2010 at 5:48 AM, karthik Jayraman <[hidden email]> wrote:

>
> I am a beginner. I have had a good look at the tutorials offered by orbeon.
> Now here is my problem.
>
> I have a form which contains two textboxes. My requirement is if i enter a
> value in one text box and click the second one , the latter must b populated
> with values from db corresponding to the value entered in the first textbox.
>
> Already my tomcat is configured to use mysql.
>
> I figured out that i could use database services and action for it from the
> link
>
> http://wiki.orbeon.com/forms/doc/user-guide/form-builder-user-guide#TOC-Advanced:-services-and-actions
>
> But it s not self explanatory. Can anyone provide me step by step or atleast
> good explanation how to do this. Thanks ...
> --
> View this message in context: http://n4.nabble.com/Form-populate-with-data-from-sql-tp1678998p1678998.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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet