CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Blank grid on start?

Print topic Send  topic

Author Message
Terry Valladon
Posted: 09/26/2002, 5:02 PM

(CCS, ASP, SQL)

I have setup a search/grid on a page. I would like the grid to be blank when
the page is first loaded.

Can this be done?

Thank you,
Terry Valladon

Tobias Weik
Posted: 09/26/2002, 7:06 PM

Terry Valladon schrieb:
> (CCS, ASP, SQL)
>
> I have setup a search/grid on a page. I would like the grid to be blank when
> the page is first loaded.
>
> Can this be done?
>
> Thank you,
> Terry Valladon

hi terry,

just add a parameter to the grid-datasource and give it a default value
that doesn´t exist (for example: "... WHERE project_id = {s_project}" ->
type: integer, default: 0).

it´s the only way I know for CCS and it works for me :))
tobias
jannaton
Posted: 10/03/2002, 8:00 PM

One way I did this was to check if the search fields are empty in the On
Initialize View event
of the page. If they are then set the grid->Visible property to False else
set it to True
My code below works for me....insert your grid and search parameters.


global $yourgridname;
// if no search entries are entered then set customer grid to false
if ((!CCGetParam("s_searchfield1", ""))
AND (!CCGetParam("s_searchfield2", ""))
{
$yourgridname->Visible = False;
}
else
{
$yourgridname->Visible = True;
}



// -------------------------
"Terry Valladon" <tvalladon@eicn.com> wrote in message
news:an076j$1p7$1@news.codecharge.com...
> (CCS, ASP, SQL)
>
> I have setup a search/grid on a page. I would like the grid to be blank
when
> the page is first loaded.
>
> Can this be done?
>
> Thank you,
> Terry Valladon
>
>


   


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.