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