Home
Analytics
"Cannot find function getFullYear"
evgeny
Hi,
I have a strange behavior while trying to preview a BirtReport. I created a report which contains the following URI hyperlink:
"
http://localhost:8080/birtViewer/preview?__report=HistogramDetails2.rptdesign&__format=html&to="+params["to"].value+"&from="+params["from"].value+"&date="+row["CREATION_DATE"].getFullYear()+"-"+(row["CREATION_DATE"].getMonth()+1)+"-"+row["CREATION_DATE"].getDate()+"&__locale=en_US&__svg=false&__designer=false&__pageoverflow=0&__masterpage=true"
;
When executing the report in the Preview/ View Report in Browser out of Eclipse, I get the following error message:
org.eclipse.birt.report.engine.api.EngineException: TypeError: Cannot find function getFullYear in object Mon Jun 01 00:00:00 CEST 2009. (#1)
The same report is executed just fine while running on Tomcat. What might be the problem for this exception?
Thank you for any help
Evgeny
Find more posts tagged with
Comments
mwilliams
Hi Evgeny,
I haven't tried using functions in a hyperlink URI like that before. That could be where the preview is having issues. It may not just be with the getFullYear() function. If you replaced that part of the URI with 2009, it'd probably run into the issue with the getMonth() function. Can you recreate this issue with the sample database so that I can see it? Thanks.