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

 CCS Fatal error (PHP)

Print topic Send  topic

Author Message
Werner
Posted: 09/06/2002, 4:10 AM

When ever I add an object (TextBox, CheckBox or what ever) to an existing page I get the following error message:

Fatal error: Call to a member function on a non-object in /usr/local/httpd/htdocs/jobaqtiv/tn_daten_maint.php on line 658

Line 658 consist of the following:
function SetValues()
{
$this->Stamm_Nr->SetDBValue($this->f("Stamm_Nr"));
-->> $this->TextBox2->SetDBValue($this->f("kat")); <<--- Line 658
....
....
$this->abschluss_date->SetDBValue($this->f("abschluss_date"));
}
//End SetValues Method

This only happends after I select the DataSource from Properties - Data.
Without the new field, everthing works fine.

Any solution??

Werner
jjtoubia
Posted: 09/06/2002, 7:25 AM

Did you make any custom modifications within the actual code? In other words, are there any sections of the code that are on a white background and not a gray background? If so, then CCS will not write to this section as it sees it as custom code. Therefore the proper statements are not being inluded.

If you do have any white areas, one way to overcome this is to copy your custom segment (not the whole white area) and save it elsewhere like a text file. Then, highlight all the code that has a white background only and delete it. Then switch to the design view and the switch right back to the code view and CCS will regenerate that section with the proper code and the newly added field(s). You can then re-paste in your custom segment.
Werner
Posted: 09/09/2002, 4:43 AM

Thanks for the help, it worked fine.
Werner

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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