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