gkg
Posts: 2
|
Posted: 09/01/2011, 3:25 PM |
|
Hey,
May be this will be a easier one, but I need assistance. My purpose is that when a value is selected in a list box, I need to get the value of other fields in the table. For example if employee name is selected in the list box, then I need to get employee ID from the table to be displayed in a text box on the form.
Plese help me
_________________
GKG |
|
|
beevet
Posts: 47
|
Posted: 09/02/2011, 2:38 PM |
|
I think this is really easy.
On the properties of the listbox, set the Bound column to be the id and the text column to be the name.
Chris
|
|
|
cleyan
Posts: 136
|
Posted: 09/04/2011, 9:21 AM |
|
do you need this value to be used in the server side (like php) or you need to be used in the client side (javascript)?
in the first case is simple, just use the GetVaue() function on the listbox to assign this value with SetValue() to the textbox
In the second case use javascript, or maybe is more easy to use a framework like jQuery to read the value on the on change event of the listbox to write on the textbox
regards
Carlos
_________________
**************************************************
Carlos Leyan B.
Temuco, Chile
www.leytec.net |
|
|
beevet
Posts: 47
|
Posted: 09/05/2011, 3:03 AM |
|
I see that I read that question all wrong now.
There are examples of dependent listboxes on the examples page.
http://examples.codecharge.com/
There is the AJAX and regular, server side ones listed.
Chris
|
|
|
|