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

 nested include problem

Print topic Send  topic

Author Message
Don Safar
Posted: 12/17/2003, 7:29 PM

Using PHP/templates and mysql. Here is my problem. I have a page called
Header. Header is an include page that is included acrossmy application. I
have two other include pages VM and HM that are included within Header
(using the include page function within ccs). I have been trying to hide VM
or HM depending on the setting of a URL parameter. I have tried putting the
following code in VM and HM in the before show event :
global $mbvh;
$VM->Visible = true;
$mbvh = CCGetFromGet("mbvh","X");
//echo "mbvh:".$mbvh; when uncommented this shows correct info
if (strToUpper($mbvh) <> "V" )
$VM->Visible = false;
Does not work. tried also in after initialize and on initialize view. Does
not work. Tried same code in Header in same events - does not work. If i use
vm as an include file within index.php and put code in before show event of
index.php it works (file is not visible). I have submitted to codecharge
support, but thought I would see if anyone else had come across this
problem.

Dave Rexel
Posted: 12/18/2003, 2:25 PM

::
Does this work?
if (strToUpper($mbvh) != "V" )
Dave

"Don Safar" <dsafar_removethis_@hotmail.com> wrote in message
news:brr6ts$soa$1@news.codecharge.com...
> Using PHP/templates and mysql. Here is my problem. I have a page called
> Header. Header is an include page that is included acrossmy application. I
> have two other include pages VM and HM that are included within Header
> (using the include page function within ccs). I have been trying to hide
VM
> or HM depending on the setting of a URL parameter. I have tried putting
the
> following code in VM and HM in the before show event :
> global $mbvh;
> $VM->Visible = true;
> $mbvh = CCGetFromGet("mbvh","X");
> //echo "mbvh:".$mbvh; when uncommented this shows correct info
> if (strToUpper($mbvh) <> "V" )
> $VM->Visible = false;
> Does not work. tried also in after initialize and on initialize view. Does
> not work. Tried same code in Header in same events - does not work. If i
use
> vm as an include file within index.php and put code in before show event
of
> index.php it works (file is not visible). I have submitted to codecharge
> support, but thought I would see if anyone else had come across this
> problem.
>
>

Don Safar
Posted: 12/18/2003, 4:51 PM

I actually put an echo statement in after the if to make sure it was taking
the correct path. It was. Codecharge Support indicated that I needed to
fully qualify the component i.e. $Header->VM->Visible = false. That worked.
But I am having difficulty with events in include files more than 1 level
deep and the documentation does not indicate how objects should be
qualified. Like most everything with codecharge, after a while, you give up
and hopefully figure another way to accomplish the same thing.
"Dave Rexel" <therex_spamenot@hotmail.com> wrote in message
news:brt9h2$fri$1@news.codecharge.com...
> ::
> Does this work?
> if (strToUpper($mbvh) != "V" )
> Dave
>
> "Don Safar" <dsafar_removethis_@hotmail.com> wrote in message
>news:brr6ts$soa$1@news.codecharge.com...
> > Using PHP/templates and mysql. Here is my problem. I have a page called
> > Header. Header is an include page that is included acrossmy application.
I
> > have two other include pages VM and HM that are included within Header
> > (using the include page function within ccs). I have been trying to hide
> VM
> > or HM depending on the setting of a URL parameter. I have tried putting
> the
> > following code in VM and HM in the before show event :
> > global $mbvh;
> > $VM->Visible = true;
> > $mbvh = CCGetFromGet("mbvh","X");
> > //echo "mbvh:".$mbvh; when uncommented this shows correct info
> > if (strToUpper($mbvh) <> "V" )
> > $VM->Visible = false;
> > Does not work. tried also in after initialize and on initialize view.
Does
> > not work. Tried same code in Header in same events - does not work. If i
> use
> > vm as an include file within index.php and put code in before show event
> of
> > index.php it works (file is not visible). I have submitted to codecharge
> > support, but thought I would see if anyone else had come across this
> > problem.
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

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.