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 -> GotoCode Archive

 Display Username on the header CCS1

Print topic Send  topic

Author Message
MAC
Posted: 07/12/2002, 2:56 PM

Does anyone know a way to display for example a username on the header?

Thanks.
MAC
Nicole
Posted: 07/13/2002, 1:48 AM

Mac,
add Label type field to the header and assign it a value in field before show event.
To lookup user login use CCgetuserLogin() function, to get "id" of logged in user use GetUserID() function. To Lookup user name use CCDLookUP function. E.g.:
CCDLookUp("user_name", "table_name", "user_id=" & CCGetUserID(), DB<connection_name>)

jjtoubia
Posted: 07/13/2002, 11:43 PM

In PHP do this:

Add a before show event, custom code. In that code type:

global $Tpl;
$Tpl->SetVar("UserName", CCGetUserLogin());

In the HTML place {UserName} wherever you want the username to appear.

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.