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"?
|
|
|
 |
|