datadoit.com
|
Posted: 04/23/2004, 5:26 PM |
|
PHP4; CCS2
This one's eating me up...
I have a search form and grid results on a page. Search form has three
criteria fields. I'd like for the results grid to not display any records
if no search criteria has been entered in any of the three search fields.
All three search fields are text. If any criteria is entered for any of the
three search fields, then of course the search should go off of that one
criteria field. I've bounced all around the Default Values and "Is Null"
options, but can't seem to find the right combination.
How should I configure this?
|
|
|
datadoit.com
|
Posted: 04/25/2004, 2:56 PM |
|
Figured it out... just hid the results grid:
$results_grid before show event
if (CCGetFromGet("search1","") == ""
and CCGetFromGet("search2","") == ""
and CCGetFromGet("search3","") == "") {
$results_grid->Visible = False;
}
No alterations needed to the default where parameters.
"datadoit.com" <mike@datadoit.com> wrote in message
news:c6cc70$lob$1@news.codecharge.com...
> PHP4; CCS2
>
> This one's eating me up...
>
> I have a search form and grid results on a page. Search form has three
> criteria fields. I'd like for the results grid to not display any records
> if no search criteria has been entered in any of the three search fields.
>
> All three search fields are text. If any criteria is entered for any of
the
> three search fields, then of course the search should go off of that one
> criteria field. I've bounced all around the Default Values and "Is Null"
> options, but can't seem to find the right combination.
>
> How should I configure this?
>
>
|
|
|
|