Razor Ent. Admin
|
Posted: 03/07/2004, 11:02 PM |
|
Hi Folks,
Just bought CCS Personal Edition (PHP) and it's been a long time since I
touched PHP so forgive me if my question is ridiculously simple...
I have a page which displays a Header, a Footer, a Search Box, and a Grid.
The user needs to be able to use the search box to display the records.
However once the correct records are being displayed, the user may need to
print the records out without the Header, Footer, or Search Box showing.
I'm assuming the solution will be to have a link button that will link back
to the same page and then pass some parameter which I'll then have to trap
and tell the page to set the various objects visible property to false. Can
someone give me some specifics in how to do this, or tell me if there's a
more appropriate method?
Thanks!
Sebastien
|
|
|
DonB
|
Posted: 03/08/2004, 5:30 AM |
|
In the page "Before Show" event, you can set the header include to
visible/not visible. Like you indicated, use a query parameter, which can
be retrieved with the CCGetParam() function and evaulated to determine if
you hide the include or show it.
--
DonB
http://www.gotodon.com/ccbth
"Razor Ent. Admin" <decastell@hotmail.com> wrote in message
news:c2h5ps$2b9$1@news.codecharge.com...
> Hi Folks,
>
> Just bought CCS Personal Edition (PHP) and it's been a long time since I
> touched PHP so forgive me if my question is ridiculously simple...
>
> I have a page which displays a Header, a Footer, a Search Box, and a Grid.
> The user needs to be able to use the search box to display the records.
> However once the correct records are being displayed, the user may need to
> print the records out without the Header, Footer, or Search Box showing.
>
> I'm assuming the solution will be to have a link button that will link
back
> to the same page and then pass some parameter which I'll then have to trap
> and tell the page to set the various objects visible property to false.
Can
> someone give me some specifics in how to do this, or tell me if there's a
> more appropriate method?
>
> Thanks!
>
> Sebastien
>
>
|
|
|
Razor Ent. Admin
|
Posted: 03/08/2004, 7:35 AM |
|
The part I'm unsure of is what mechanism to use to pass the parameter in the
first place. If I put a link item on the page, how do I tell it to pass all
the current parameters (the ones from the search box originally) plus a new
parameter to tell the page to hide the objects?
Does anyone have an example handy?
Thanks,
Sebastien
"DonB" <~ccbth~@gotodon.com> wrote in message
news:c2hsh4$vrd$1@news.codecharge.com...
> In the page "Before Show" event, you can set the header include to
> visible/not visible. Like you indicated, use a query parameter, which can
> be retrieved with the CCGetParam() function and evaulated to determine if
> you hide the include or show it.
>
> --
> DonB
>
> http://www.gotodon.com/ccbth
>
>
> "Razor Ent. Admin" <decastell@hotmail.com> wrote in message
>news:c2h5ps$2b9$1@news.codecharge.com...
> > Hi Folks,
> >
> > Just bought CCS Personal Edition (PHP) and it's been a long time since I
> > touched PHP so forgive me if my question is ridiculously simple...
> >
> > I have a page which displays a Header, a Footer, a Search Box, and a
Grid.
> > The user needs to be able to use the search box to display the records.
> > However once the correct records are being displayed, the user may need
to
> > print the records out without the Header, Footer, or Search Box showing.
> >
> > I'm assuming the solution will be to have a link button that will link
> back
> > to the same page and then pass some parameter which I'll then have to
trap
> > and tell the page to set the various objects visible property to false.
> Can
> > someone give me some specifics in how to do this, or tell me if there's
a
> > more appropriate method?
> >
> > Thanks!
> >
> > Sebastien
> >
> >
>
>
|
|
|
becherovka
Posts: 8
|
Posted: 03/14/2004, 11:57 PM |
|
I'm also trying to do the same thing but I can not set an includable page visible or not. I tried everything but its not working. İf there is a small example that would be helpfull
|
|
|
DonB
|
Posted: 03/15/2004, 1:12 PM |
|
You MUST set the include Visible property true/false in the BeforeShow event
of the page. That is the only place it will actually have an effect.
Here's a snippet that maniuplates the Visible property:
global $reports;
if (CCGetParam("rid","0") == 0) {
$reports->includeheader->Visible = false;
}
else {
$reports->includeheader->Visible = true;
}
--
DonB
http://www.gotodon.com/ccbth
"becherovka" <becherovka@forum.codecharge> wrote in message
news:5405561eb2dee5@news.codecharge.com...
> I'm also trying to do the same thing but I can not set an includable page
visible or not. I tried everything but its not working. İf there is a
small example that would be helpfull
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
|