CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 label before show event

Print topic Send  topic

Author Message
Dennis
Posted: 08/03/2003, 7:31 PM

Banged my (CCSnewbie) head on the wall long enough. I am trying to modify
the taskmanager example according to the printed instructions in the Quick
Start Tutorials to display the user_id_assign_by user name.

I added the label for user_id_assign_by. When you insert a record, it is
posting the correct integer value for the logged in user. It seems the
portion that is reading the record value is not displaying it in the label.

Here is my beforeshow event custom code. my database connection name is
'afx'

//Custom Code @49-AE1693F7
// -------------------------
global $task;
// Write your own code here.
global $DBafx;
if($task->EditMode) {
$task->user_id_assign_by->SetValue(CCDLookUp("emp_name", "employees",
"emp_id=".$DBafx->ToSQL($task->user_id_assign_by->GetValue(), ccsInteger),
$DBafx));
}
else {
$task->user_id_assign_by->SetValue(CCDLookUp("emp_name", "employees",
"emp_id=".$DBafx->ToSQL(CCGetUserID(), ccsInteger), $DBafx));
}
// -------------------------
//End Custom Code

any help is greatly appreciated....!!!!

Dennis


   


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

Web Database

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.