CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 checkbox list searching

Print topic Send  topic

Author Message
rvp032582

Posts: 47
Posted: 05/25/2006, 1:34 PM

i need to be able to have a checkbox list of housing types. if someone is looking for 1 bedroom and/or a 2bedroom, when the choose those 2 checkboxes, the results of the search need to have both property types.

maybe this is a dumb question with an easy answer, but i've tried it, by selecting more than one checkbox and no results were displayed. it only displays results when 1 checkbox is selected
anybody have an idea to get it to work?
thanks,
rvp
View profile  Send private message
boris

Posts: 14
Posted: 05/25/2006, 4:33 PM

The way i achieved this in my app was to have checkboxes in your Search form. These were Boolean with True and False in the Checked/Unchecked Value.

On your Grid's Data Source i added a Parameter to the Where statement which states that if [Table].[Boolean Field] is equal to Checkbox Name as specified in your Search grid.

For the second checkbox just add another Paramether in the Where statement just like above but make sure it's an OR not an AND.

I'm not sure if this example would work in your particular circumstance but the method is the same. I hope i explained it well enough for you to get the idea?
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.

Web Database

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.