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 -> General/Other

 listbox duplicates

Print topic Send  topic

Author Message
thsman

Posts: 27
Posted: 02/18/2012, 10:20 AM

Is there a way to remove or hide duplicates in a listbox without code? If code is needed where should it go? I'm currently using asp
View profile  Send private message
thsman

Posts: 27
Posted: 02/18/2012, 5:25 PM

I didn't work it out but found a better way to do what I wanted.
View profile  Send private message
andy


Posts: 183
Posted: 02/19/2012, 10:16 AM

On the Data tab of the Listbox Properties
Change Data Source Type to SQL
Create an SQL SELECT query that includes the bound column (id key field) and the Text column (descriptive value) and make it DISTINCT

Example:
SELECT DISTINCT idfield, textfield FROM mytable

Then your idfield will be available to select for the Bound Column and the textfield for the Text Column.

If you use your own SQL statements for listboxes, you can do all kinds of interesting things such as concatenating fields to create rich Text Column descriptions.

Hope that helps. 8-)
_________________
Andy

RAD tools for rich UI controls:
http://www.koolphptools.com
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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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