CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 problem changing text color as per examples

Print topic Send  topic

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

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.