CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 List box

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.