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 -> General/Other

 report generation error

Print topic Send  topic

Author Message
fly_mo


Posts: 109
Posted: 09/17/2006, 7:43 PM

Hello All,
Just started using the trial software and trying to get my head around the magnitude...:(
I've created a test app and have begun tampering, I created a report based on a sql query and I get the following error when I try to publish..
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting T_STRING or T_VARIABLE or '{' or '$' in C:\wamp...\members\Header_events.php on line 17

I look at the code and can see no missing { or $ ...here's the code..
/ //Events @1-F81417CB

//Header_BeforeShow @1-A14CFA36
function Header_BeforeShow(& $sender)
{
$Header_BeforeShow = true;
$Component = & $sender;
$Container = CCGetParentContainer($sender);
global $Header; //Compatibility
//End Header_BeforeShow

//Hide-Show Component @5-8A4CA3A4
$Parameter1 = CCGetFromGet("ViewMode", "");
$Parameter2 = "Print";
if (0 == CCCompareValues($Parameter1, $Parameter2, ccsText))
$Component->->Visible = false; Line 17
//End Hide-Show Component

//Close Header_BeforeShow @1-E0152CE0
return $Header_BeforeShow;
}
//End Close Header_BeforeShow


Probably something simple, any help would be appreciated


_________________
John
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 09/17/2006, 8:07 PM

fly_mo
In line 17 this: $Component->->Visible = false
Should be this: $Component->Visible = false
Give it a try and let us now if it works.
View profile  Send private message
peterr


Posts: 5971
Posted: 09/17/2006, 10:43 PM

This problem also indicates that the Hide-Show action is misconfigured. Possibly the "Component Name" property of the action is blank or invalid?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
fly_mo


Posts: 109
Posted: 09/18/2006, 6:33 AM

Hello Peter,
Thanks for the response.
I have tried as you suggest without success. I ultimately deleted the offending report as it continued to generate that same error in the code (I would edit the file, reload the page and the ->-> would be re-written. I went though the remainder of the 2 pages that I'd created and can't find any elements that seem to be incorrect. Still having the problem.

I'm open to other ideas before I delete the app & start again... :(
John

_________________
John
View profile  Send private message
fly_mo


Posts: 109
Posted: 09/18/2006, 7:31 AM

Hello Peter,
I finally found the error (you were correct of course) I just took quite a while to look everywhere
Many thanks
John
_________________
John
View profile  Send private message
WKempees
Posted: 09/18/2006, 3:04 PM

The ->-> is a recent typo I found when "Autocompletion" is ON and you are a
fast typist.
Autocomplete will (generate source) lookup the value you are typing, insert
it in your source.
If for instance you are typing $Component, autocomplete will at some point
insert $Component-> into your coding, replacing your typed string except for
the ->, resulting in ->->

Walter


"fly_mo" <fly_mo@forum.codecharge> schreef in bericht
news:2450eada758e7b@news.codecharge.com...
> Hello Peter,
> I finally found the error (you were correct of course) I just took quite a
> while to look everywhere
> Many thanks
> John
> _________________
> John
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

fly_mo


Posts: 109
Posted: 09/20/2006, 9:45 AM

Thanks for the help.
I'm now suffering a newer issue which is a little bizarre.
I try to create a report using the builer and when I try to publish the result the report shows no results (as opposed to no records)
The SQL statement is fine and it shows all the correct records, I can get the same sql to create a Grid (using builder) and show the results - just can figure out why the reports would be blank.
Any ideas would be appreciated.
John
_________________
John
View profile  Send private message
fly_mo


Posts: 109
Posted: 09/20/2006, 10:47 AM

Cancel that.... :-|

I found that the detail section was set to visible = no....don't know why.
Another two hours of my life that I'll never get back...

John
_________________
John
View profile  Send private message
DJJWP


Posts: 77
Posted: 10/14/2006, 12:41 PM

Quote fly_mo:
Hello Peter,
I finally found the error (you were correct of course) I just took quite a while to look everywhere
Many thanks
John

Please define everywhere. I have a 200 page app and just hit this issue. Now whole development is stopped until this is fixed.

I had created a second report in the wrong folder. When I moved it I got the issue. Please detail where I need to look for this issue! I killed the page that caused the issue in both directories and still have this issue.

//Close Header_BeforeShow @1-E0152CE0
return $Header_BeforeShow;
}
//End Close Header_BeforeShow

//Header_BeforeShow @1-A14CFA36
function Header_BeforeShow(& $sender)
{
$Header_BeforeShow = true;
$Component = & $sender;
$Container = CCGetParentContainer($sender);
global $Header; //Compatibility
//End Header_BeforeShow

//Hide-Show Component @3-8A4CA3A4
$Parameter1 = CCGetFromGet("ViewMode", "");
$Parameter2 = "Print";
if (0 == CCCompareValues($Parameter1, $Parameter2, ccsText))
$Component->Visible = false;
//End Hide-Show Component

//Close Header_BeforeShow @1-E0152CE0
return $Header_BeforeShow;
}
//End Close Header_BeforeShow

?>

_________________
Network Operations Rule
View profile  Send private message
fly_mo


Posts: 109
Posted: 10/15/2006, 5:38 AM

Hi DJJWP,
This was a weird one...
I eventually found in the main header_events a hide show component (autogenerated but there was no code)
I deleted the action and republished and that seemed to fix the problem. I had only been using the app for a couple of days so suffering from the learning curve and had quite a few problems because of not being familiar with the foibles of the software....so I may have inadvertantly not "fixed" it correctly.
John
_________________
John
View profile  Send private message
DJJWP


Posts: 77
Posted: 10/15/2006, 11:42 AM

Did not do the trick but thanks. I did find that action there and killed it but that did not solve the issue :( .

Don
_________________
Network Operations Rule
View profile  Send private message
DJJWP


Posts: 77
Posted: 10/15/2006, 11:45 AM

I spoke too soon! I have two headers in a main and a sub directory. Found the second hide action and now it works.

THANK YOU!!!!
_________________
Network Operations Rule
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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