CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Session Variable in grid header

Print topic Send  topic

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


View profile  Send private message
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.
View profile  Send private message

Add new topic Subscribe to topic   


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.