CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 How to default grid to all records when search is empty

Print topic Send  topic

Author Message
Frank Rocco
Posted: 08/01/2002, 7:07 AM

Hello,

I have a page that has a Search form and a grid.
The search form has a dropdown box of names passing the integer value to the
grid.
The default is Any with a value of blank

The grid has SQL coded to select records based on the value passed from the
Search form.
How can I display all records in the grid when the value is Any?

Thanks
Frank

Geert van der Ploeg
Posted: 08/05/2002, 12:36 AM

add an "OR" statement in your sql:

select blablabla from bloebloebloe where
.... your conditions ...
OR '{s_keyword}' = 'NULL'


This is an ugly solution, but it works.
This is because CCS defaults empty params to the string 'NULL'.


HTH,

Geert van der Ploeg
Triple IT


----- Original Message -----
From: "Frank Rocco" <farocco@hotmail.com>
Newsgroups: codechargestudio.discussion
Sent: Thursday, August 01, 2002 4:10 PM
Subject: How to default grid to all records when search is empty


> Hello,
>
> I have a page that has a Search form and a grid.
> The search form has a dropdown box of names passing the integer value to
the
> grid.
> The default is Any with a value of blank
>
> The grid has SQL coded to select records based on the value passed from
the
> Search form.
> How can I display all records in the grid when the value is Any?
>
> Thanks
> Frank
>
>


   


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.