CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Multi-Column Listbox

Print topic Send  topic

Author Message
DataDoIt
Posted: 02/25/2004, 5:49 PM

CCS2; PHP4; MySQL

How can I display a multi-column listbox?

Data Source Type = Table/View
BoundColumn = EmpID
Text Column = [EmpID | EmployeeName | EmployeeCity] <-- I'd like something
like this.

Thanks.

-Mike

bguthrie


Posts: 31
Posted: 02/26/2004, 7:37 AM

Mike,

I accomplished this by:

Data Source Type = SQL (In your SQL use CONCAT to combine your columns and assign an alias name).
BoundColumn = EmpID
Text Column = "alias name" specified in your SQL statement - this should show up in the drop down listbox.
_________________
Regards,

Bruce
View profile  Send private message
EMG


Posts: 35
Posted: 02/26/2004, 8:37 AM

The only way to make the columns justified is by using a fixed-width font like lucinda console or courier new.
Next you need to determine a length for each column and pad/trim the value. Set the dropdown to listofvalues, do your query in custom code, handle each column, and add to the list of values.
View profile  Send private message
DataDoIt
Posted: 02/26/2004, 7:55 PM

CONCAT worked great. Thank you!

-Mike

"bguthrie" <bguthrie@forum.codecharge> wrote in message
news:5403e12a934dd4@news.codecharge.com...
> Mike,
>
> I accomplished this by:
>
> Data Source Type = SQL (In your SQL use CONCAT to combine your columns and
assign an alias name).
> BoundColumn = EmpID
> Text Column = "alias name" specified in your SQL statement - this should
show up in the drop down listbox.
> _________________
> Regards,
>
> Bruce
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

jayme
Posted: 06/16/2004, 7:48 AM

Select CONCAT(field1, field2, field3) FROM table2 AS field1

Give me an error not understanding what CONCAT does. Did I do this incorrectly?
david
Posted: 01/19/2005, 3:17 PM

SELECT concat(field1, field2) as "listbox"
FROM
table2

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.