CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 No Search on OPEN

Print topic Send  topic

Author Message
Dave Crandall
Posted: 01/14/2003, 6:09 AM

By default, when opening a search/grid page, the search fires and displays results for "all" records. This is time consuming and delays the opening of the page. How do you delay the search until the "Search" button is clicked? Is this a custom event?
RonB
Posted: 01/14/2003, 8:24 AM

I dont think search "fires"when opening the page. The database returns a result in wich the where clause is empty or filled with the default value you provided when you made the grid. These default values are the key. Give a default value of wich you are sure there will never be any rows that meat the resulting where clause. I often use the value 0( zero) for primary keys because mysql starts with 1 so it will never give a result. Now the page opens with an empty grid until you provide values via the search grid.

Ron
Dave Crandall
Posted: 01/14/2003, 8:38 AM

New question then -

Then do I need to add an "if" statement in the Grid to display 'no records' when search criteria = "null"?

   


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.