CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Search for Value Range

Print topic Send  topic

Author Message
valueweb

Posts: 8
Posted: 06/09/2006, 2:01 AM

I have a grid and search form. (php/mysql/linux)

The grid table has a integer field. I want to search for records where that field contains GT x and LT y. With the user obviously supplying x and y.

What's the simplest way to do this ?
View profile  Send private message
valueweb

Posts: 8
Posted: 06/09/2006, 2:41 AM

Sorry ! Worked it out for myself...

Just in case it helps anyone else who is a learner, I manually inserted an additional TH/TD in the Search Form HTML , right next to the original, which then gave me two search boxes to use for the same field. I provided new captions, Min (GT) and Max (LT).

I then went into the datasource property for the grid, changed the original sql element relating to the field from "=" to ">=" for the Minimum Range and inserted another element into the sql query comparing the integer field in the record to the new search variable (as inserted in the html) and selected <= from the drop down.

Voila! It works fine
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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