willie
|
| Posted: 10/11/2004, 8:32 AM |
|
CodeCharge,
I am trying to follow the examples given in "http://docs.codecharge.com/studio/html/" to changed the color of text in a cell. I took the "Task Manager" in the Solutions page and made it work with MySQL and PHP. When I try to follow the example above I get this error message "Fatal error: Call to a member function on a non-object in /var/www/intranet/html/NewProject4/Default_events.php on line 21"
Here is that code:
<?php
//BindEvents Method @1-D3E353FA
function BindEvents()
{
global $tasks;
$tasks->CCSEvents["BeforeShowRow"] = "tasks_BeforeShowRow";
}
//End BindEvents Method
//tasks_BeforeShowRow @38-44711D4F
function tasks_BeforeShowRow()
{
$tasks_BeforeShowRow = true;
//End tasks_BeforeShowRow
//Custom Code @209-6677D199
// -------------------------
global $tasks;
// Write your own code here.
if ($Tasks->Priority->GetValue() == "High") {
$Tasks->Priority_Color->SetValue("RED");
} else if ($Tasks->Priority->GetValue() == "Lowest") {
$Tasks->Priority_Color->SetValue("GREEN");
} else {
$Tasks->Priority_Color->SetValue("BLACK");
}
// -------------------------
//End Custom Code
//Close tasks_BeforeShowRow @38-DAEB5F3B
return $tasks_BeforeShowRow;
}
//End Close tasks_BeforeShowRow
?>
What am I missing here? The examples on your site do not resemble the code that your program generates and maybe that is throwing me.
Thanks
|
|
|
 |
|