CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 undefined property: TemplatePath

Print topic Send  topic

Author Message
dirksamson

Posts: 32
Posted: 10/14/2004, 1:01 PM

I include an includable page containing a grid; on each row of this grid I placed several labels (no problem) and a link to nextpage.php?id=rowID (this causes the problem)

Notice: Undefined property: TemplatePath in D:\Users\Dirk\CCS Projecten\ressmit\CodeCharge\Person\inc_person_summary.php

this notice is the result of the following lines of code:


class clsGridinc_person_summaryperson
........
function Show() {
......
$this->person_ID->Page = $this->TemplatePath . "../person/person_detail.php";
.... }

Anyone?
_________________
Dirk
View profile  Send private message
greg
Posted: 10/14/2004, 8:24 PM

I have the same problem with an includable page... maybe it's a clue.
Anyway I don't see why a picture link would need to refer to template
path more than any other object.

Greg
klwillis


Posts: 428
Posted: 10/15/2004, 1:36 PM

Have you tried setting the link URL to just "nextpage.php"?

If that works, then it has something to do with "id==rowID" parameter.
Quote dirksamson:
I include an includable page containing a grid; on each row of this grid I placed several labels (no problem) and a link to nextpage.php?id=rowID (this causes the problem)

Notice: Undefined property: TemplatePath in D:\Users\Dirk\CCS Projecten\ressmit\CodeCharge\Person\inc_person_summary.php

this notice is the result of the following lines of code:


class clsGridinc_person_summaryperson
........
function Show() {
......
$this->person_ID->Page = $this->TemplatePath . "../person/person_detail.php";
.... }

Anyone?

_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message
dirksamson

Posts: 32
Posted: 10/17/2004, 4:01 AM

Removing

" $this->TemplatePath "

from the line does indeed 'solve' the problem; however, CCS won't update my code anymore, since I changed the code myself..

The workaround I decided to use is to add

var $TemplatePath = "";

at the beginning of the class.

Does anyone agree that this is a ccs-bug ?

_________________
Dirk
View profile  Send private message
Baelder
Posted: 10/21/2004, 4:12 PM

Did you try to set the "Convert URL To" property of your links to "Absolute" and set a valid "Server URL" in your Publishing Project settings ?
Ronald van den Berg
Posted: 11/17/2004, 2:33 AM

The link has to be set as 'absolute', because the included file can be included from any file in any directory.
Therefore, this is not a bug in CodeCharge. O:)
dirksamson

Posts: 32
Posted: 11/17/2004, 9:13 AM

OK, not a bug. But I wouldn't call it a feature either...

I suppose a feature request is in place here? Do not allow relative links if a page is includable?

Thanks for the help!
_________________
Dirk
View profile  Send private message

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.

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.