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 -> PHP

 Search Grid Results

Print topic Send  topic

Author Message
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?
>
>


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.

MS Access to Web

Convert MS Access to Web.
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.