Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 21:15 Go to next message
Howard Yeung is currently offline Howard YeungFriend
Messages: 5
Registered: April 2013
Junior Member
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!
<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">
<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)
<property name="dataType">float</property>
Re: Script engine error: ReferenceError after migrated from 2.5.2 to 3.7.2 [message #1579689 is a reply to message #1566395] Fri, 23 January 2015 04:05 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Could you attach your report design?


Developer Evangelist, Silanis
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 Jul 18 02:56:10 GMT 2024

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

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

Back to the top