incoronado
Posts: 12
|
| Posted: 03/15/2007, 3:45 PM |
|
I apologize in adavance for asking such a simple question, but I'm trying to get a session variable to show up as a title in the header of a grid. I thought it would require the use of a template {variable} in the HTML code, but I'm not very strong on that subject.
|
 |
 |
wkempees
|
| Posted: 03/15/2007, 5:13 PM |
|
When in design mode, position cursor in the header of your grid.
Next, from forms tab, click "label"set the properties as needed, for
instance
name: grid_header_label
Content: Text
In the Events Tab-> BeforeShow:
$Component->SetValue( CCGetSession("session_var_name", "") );
You could also set the content in various other places, like any normal
Label.
Another approach if you already have a label displaying the sessionvar,
click and move it into the Header.
Walter
"incoronado" <incoronado@forum.codecharge> schreef in bericht
news:245f9da7d7c614@news.codecharge.com...
>I apologize in adavance for asking such a simple question, but I'm trying
>to get
> a session variable to show up as a title in the header of a grid. I
> thought it
> would require the use of a template {variable} in the HTML code, but I'm
> not
> very strong on that subject.
>
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
wkempees
|
| Posted: 03/15/2007, 5:14 PM |
|
PS: Code is PhP flavor
"incoronado" <incoronado@forum.codecharge> schreef in bericht
news:245f9da7d7c614@news.codecharge.com...
>I apologize in adavance for asking such a simple question, but I'm trying
>to get
> a session variable to show up as a title in the header of a grid. I
> thought it
> would require the use of a template {variable} in the HTML code, but I'm
> not
> very strong on that subject.
>
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
incoronado
Posts: 12
|
| Posted: 03/15/2007, 7:33 PM |
|
worked perfectly. Thanks.
|
 |
 |
|