birdie185
|
| Posted: 06/20/2002, 8:32 AM |
|
I have a grid that links to a record on the same page.
see example
http://24.70.140.29/tripars/Home.php
when you enter you see a empty record.
what i am looking for is a way to remove the empty record (table showing but
empty) so that the record does not show at all (no table) or set it to the
first grid value (id)
i used to be able to do this in CC2
in this fashion
========================
if (!get_param("s_division_scorer") )
{
$tpl->set_var("Formleadingscorers",""); // <-- sets the form blank
return;
}
================
but can't seem to here
Thanks
|
|
|
 |
birdie185
|
| Posted: 06/20/2002, 10:37 AM |
|
here is the solution to my own problem :)
function Page_AfterInitialize() { //Page_AfterInitialize @1-56434BCA
//Custom Code @63-2A29BDB7
// -------------------------
// Write your own code here.
// -------------------------
global $content;
$current_record = CCGetParam("id","");
if($current_record==0)
$content->Visible = False;
"birdie185" <birdie185@home.com> wrote in message
news:aessin$8qu$1@news.codecharge.com...
> I have a grid that links to a record on the same page.
>
> see example
>
> http://24.70.140.29/tripars/Home.php
>
> when you enter you see a empty record.
>
> what i am looking for is a way to remove the empty record (table showing
but
> empty) so that the record does not show at all (no table) or set it to the
> first grid value (id)
>
> i used to be able to do this in CC2
>
> in this fashion
> ========================
> if (!get_param("s_division_scorer") )
> {
> $tpl->set_var("Formleadingscorers",""); // <-- sets the form blank
> return;
> }
> ================
>
> but can't seem to here
>
> Thanks
>
>
>
>
>
>
>
>
|
|
|
 |
|