Skip to main content



      Home
Home » Archived » BIRT » Script engine error: ReferenceError after migrated from 2.5.2 to 3.7.2(I got the error when previewing the report)
icon7.gif  Script engine error: ReferenceError after migrated from 2.5.2 to 3.7.2 [message #1566395] Thu, 15 January 2015 16:15 Go to next message
Eclipse UserFriend
It seems to complain a javascript variable not being declared. But I check the variable is in the xml file. The following is the exact message I saw at the report preview page:
But I can see the variable declaration right there at the xml file. Any suggestions here? I migrated couple of reports from 2.5.2 to 3.7.2. So far this is the one that has an issue. Thanks.

Table tblDetail:
- A BIRT exception occurred. See next exception for more information.
Error evaluating Javascript expression. Script engine error: ReferenceError: "tot_dist_quarters1" is not defined.
Script source: null, line: 0, text:
<compiled script> (Element ID:96)

------> But the variable is right there!
<body>
<table name="tblDetail" id="96">
<property name="fontSize">medium</property>
<property name="marginLeft">10pt</property>
<property name="canShrink">false</property>
<property name="width">10.3in</property>
<property name="dataSet">rtTrans</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">tot_dist_quarters1</property>
<text-property name="displayName">tot_dist_quarters1</text-property>
<expression name="expression" type="javascript">if(params["rpCircuit1"].value==-1)
{
row["tot_dist_quarters"]/2
}
else
{
row["tot_dist_quarters"]-row["tot_circ_quaters"]
}</expression>
<property name="dataType">float</property>
</structure>
<structure>
Re: Script engine error: ReferenceError after migrated from 2.5.2 to 3.7.2 [message #1579689 is a reply to message #1566395] Thu, 22 January 2015 23:05 Go to previous message
Eclipse UserFriend
Could you attach your report design?
Previous Topic:Extract data from cross tab in report?
Next Topic:How to define different library data sources in reports
Goto Forum:
  


Current Time: Thu Mar 27 01:01:29 EDT 2025

Powered by FUDForum. Page generated in 0.03641 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top