CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 grid and record (remove blank record)

Print topic Send  topic

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


   


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.