Brent
|
Posted: 05/04/2002, 8:17 AM |
|
How do I change the grid title in CCS? I assumed I would use an event
with $Tpl->SetVar() to change it. I thought I could use the Before
Show > Custom Code event for the grid. Unfortunately I can't see any
way of referencing the $Tpl class from here. I thought they might pass
the $Tpl to this event (why don't they?). Can titles be changed in
events? Or should I add the code directly into the Display event?
TIA
Brent
|
|
|
CodeCharge Support
|
Posted: 05/04/2002, 1:42 PM |
|
Grid title/caption is simply a text on your page (HTML).
You can replace it with some text in curly brackets like {my_grid} and then
you can use SetVar to replace it with something else.
Konrad
"Brent" <bdgridly@mailbolt.com> wrote in message
news:8ru7du0fp89hi31oqonhbva3p1cp4tpci9@4ax.com...
> How do I change the grid title in CCS? I assumed I would use an event
> with $Tpl->SetVar() to change it. I thought I could use the Before
> Show > Custom Code event for the grid. Unfortunately I can't see any
> way of referencing the $Tpl class from here. I thought they might pass
> the $Tpl to this event (why don't they?). Can titles be changed in
> events? Or should I add the code directly into the Display event?
> TIA
>
> Brent
|
|
|
Brent
|
Posted: 05/04/2002, 2:19 PM |
|
"CodeCharge Support" <support@codecharge.com> wrote:
:Grid title/caption is simply a text on your page (HTML).
:You can replace it with some text in curly brackets like {my_grid} and then
:you can use SetVar to replace it with something else.
:
:Konrad
:
Konrad,
Yes, I was aware of that. But which event do I use? I thought I
could use the Before Show event and add some custom code
"$Tpl->SetVar()" to change the "{my_grid}" to something else. But how
do I get access to $Tpl in the event? I thought the $Tpl would be
passed to the event but it's not. The only alternative I've come up
with is to edit the code in the Display() event because $Tpl is
accessible there. But I thought an event would be a better place than
modifying Display(). Can you shed some light on this? TIA
Brent
:
:
:"Brent" <bdgridly@mailbolt.com> wrote in message
:news:8ru7du0fp89hi31oqonhbva3p1cp4tpci9@4ax.com...
:> How do I change the grid title in CCS? I assumed I would use an event
:> with $Tpl->SetVar() to change it. I thought I could use the Before
:> Show > Custom Code event for the grid. Unfortunately I can't see any
:> way of referencing the $Tpl class from here. I thought they might pass
:> the $Tpl to this event (why don't they?). Can titles be changed in
:> events? Or should I add the code directly into the Display event?
:> TIA
:>
:> Brent
:
|
|
|
RonB
|
Posted: 05/05/2002, 3:14 AM |
|
"Brent" <bdgridly@mailbolt.com> schreef in bericht
news:auj8dukj2k46deu7937b78065ldhoimb48@4ax.com...
> "CodeCharge Support" <support@codecharge.com> wrote:
>
> :Grid title/caption is simply a text on your page (HTML).
> :You can replace it with some text in curly brackets like {my_grid} and
then
> :you can use SetVar to replace it with something else.
> :
> :Konrad
> :
>
> Konrad,
> Yes, I was aware of that. But which event do I use? I thought I
> could use the Before Show event and add some custom code
> "$Tpl->SetVar()" to change the "{my_grid}" to something else. But how
> do I get access to $Tpl in the event? I thought the $Tpl would be
> passed to the event but it's not. The only alternative I've come up
> with is to edit the code in the Display() event because $Tpl is
> accessible there. But I thought an event would be a better place than
> modifying Display(). Can you shed some light on this? TIA
>
> Brent
>
>
> :
> :
> :"Brent" <bdgridly@mailbolt.com> wrote in message
> :news:8ru7du0fp89hi31oqonhbva3p1cp4tpci9@4ax.com...
> :> How do I change the grid title in CCS? I assumed I would use an event
> :> with $Tpl->SetVar() to change it. I thought I could use the Before
> :> Show > Custom Code event for the grid. Unfortunately I can't see any
> :> way of referencing the $Tpl class from here. I thought they might pass
> :> the $Tpl to this event (why don't they?). Can titles be changed in
> :> events? Or should I add the code directly into the Display event?
> :> TIA
> :>
> :> Brent
> :
>
Maybe I'm not to bright but why dont you change the title by selecting
it in design view and typing something else. It's just a bit of HTML ,I cant
see why you would want to use an event for that.
Ron
|
|
|
CodeCharge Support
|
Posted: 05/06/2002, 2:15 PM |
|
Possibly you could try using Page Events like After Initialize or Before
Show and use code like this:
global $Tpl;
$Tpl->SetVar("your_tag_name", "your_value");
I believe that form/component events may not work in some cases like grid
captions, therefore please make sure you try page events first.
Konrad
"Brent" <bdgridly@mailbolt.com> wrote in message
news:8ru7du0fp89hi31oqonhbva3p1cp4tpci9@4ax.com...
> How do I change the grid title in CCS? I assumed I would use an event
> with $Tpl->SetVar() to change it. I thought I could use the Before
> Show > Custom Code event for the grid. Unfortunately I can't see any
> way of referencing the $Tpl class from here. I thought they might pass
> the $Tpl to this event (why don't they?). Can titles be changed in
> events? Or should I add the code directly into the Display event?
> TIA
>
> Brent
|
|
|