Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » ReferenceError: "BarSeriesImpl" is not defined. at line X of chart script:'' (When trying to run bar chart report in some system)
ReferenceError: "BarSeriesImpl" is not defined. at line X of chart script:'' [message #876812] Fri, 25 May 2012 10:08 Go to next message
Dejan Vujanic is currently offline Dejan VujanicFriend
Messages: 66
Registered: October 2011
Member
Hi,

My report works fine in birt.
But when I import in some system (IBM maximo) I am getting this error instead of displaying the bar chart:

ReferenceError: "BarSeriesImpl" is not defined. at line 8 of chart script:''

I used this script to show me some values on Bar chart.

importPackage( Packages.java.util );
importPackage( Packages.org.eclipse.birt.chart.model.type.impl );


function afterDataSetFilled(series, dataSet, icsc)
{

if( series.getClass() == BarSeriesImpl ){


var inv =
parseInt(icsc.getExternalContext().getScriptable().getPersistentGlobalVariable("IN"));
var outv =
parseInt(icsc.getExternalContext().getScriptable().getPersistentGlobalVariable("OUT"));
var canv =
parseInt(icsc.getExternalContext().getScriptable().getPersistentGlobalVariable("CANCELED"));

var narray1 = new ArrayList( );
narray1.add(inv);
narray1.add(outv);
narray1.add(canv);
dataSet.setValues(narray1);
}else{
var catArray = new ArrayList();
catArray.add("IN");
catArray.add("OUT");
catArray.add("CANCELED");
dataSet.setValues(catArray);
}

}

How to solve this? Does I have to impost somehow this class in my system or ..?
I am sending an example which works fine in BIRT

Thank you

[Updated on: Fri, 25 May 2012 12:14]

Report message to a moderator

Re: ReferenceError: "BarSeriesImpl" is not defined. at line X of chart script:'' [message #876842 is a reply to message #876812] Fri, 25 May 2012 11:18 Go to previous message
Dejan Vujanic is currently offline Dejan VujanicFriend
Messages: 66
Registered: October 2011
Member
I found out that in my jar file org.eclipse.birt.chart.engine_2.3.2.r232_20090211.jar there is really that class BarSeriesImpl in org.eclipse.birt.chart.model.type.impl.
But also in my system exactly the same plugin is deployed org.eclipse.birt.chart.engine_2.3.2.r232_20090211.jar which also does contain that class BarSeriesImpl.

So why am I getting error ReferenceError: "BarSeriesImpl" is not defined. at line 8 of chart script:''

Maybe my definition is not good?
Packages.org.eclipse.birt.chart.model.type.impl
Previous Topic:Problem deploying script data source report
Next Topic:PDF Render: Export to PDF file exports only first page
Goto Forum:
  


Current Time: Wed Nov 26 15:42:38 GMT 2014

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

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