CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Extracting information from combobox

Print topic Send  topic

Author Message

Posts: 3
Posted: 10/03/2008, 1:10 PM


I need help with getting information out of a combobox selected item and put it elsewhere. I would like to extract the text (the text that is displayed) from the combobox, not the value. I need it to be a text variable once extracted. For example in the code below, I want to extract the text "All Creditors" when that option is selected. All the help I can find now only tells me how to get the value (i.e. "1" from code below). Thanks in advance to anyone who can help! :-)

p.s. If anyone cares to know, I am using the extracted data to enter into a tooltip. The text is the same as the id of an area which i want the tooltip to be displayed next to. I'm still not sure if this will work because the actual id is supposed to be entered in the tooltip, so the variable may still register instead of the value of the variable. If anyone has any ideas about this issue also, it would be greatly appreciated.

i have this code
<SELECT name="genReport">
<OPTION value="1">All Creditors</OPTION>
<OPTION value="2">30 Day Creditors</OPTION>
<OPTION value="3">60 Day Creditors</OPTION>
<OPTION value="4">90 Day Creditors</OPTION>
<OPTION value="5">Above 90 Day Creditors</OPTION>

View profile  Send private message

Posts: 942
Posted: 10/03/2008, 3:35 PM


I'm a little confused as to what you are trying to do.

Are you trying to do this in HTML? If so I cannot think of a way to do that doe a combo box.

But if you are doing it in CCS php code it is simply doing a database lookup on the value in the field on the table that created the combo box and get the text associated with the bound value.

If I understand what you need correctly.

John Real - More CodeCharge Studio Support at -
View profile  Send private message
Posted: 10/03/2008, 6:40 PM

Well, I suppose a quick way would be to use the text value for the
combobox as the ID, then do server side custom code OnValidate or
BeforeInsert/Update to get the real ID. That should make it easier to
put the combobox value into your tooltip via javascript.

Other option I can think of would be an AJAX call in the combobox
onchange event.

Posts: 942
Posted: 10/04/2008, 7:00 AM

Exactly Data..

But your idea of using the text for the bound colomn is a good way also. And probably the easiest.

John Real - More CodeCharge Studio Support at -
View profile  Send private message

Posts: 3
Posted: 10/07/2008, 6:02 AM


I tried using a text value, but It did not work. Do you know the exact code for it?
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

Internet Database

Visually create Web enabled database applications in minutes.

Home   |    Search   |    Members   |    Register   |    Login

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