Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Missing class from Birt how to add in system and where to find class?
Dejan8888
My report works fine in BIRT.It shows me some table and some bar chart. 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 think it misses some class.
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 import somehow this class in my system or ..?
But also where to find that class? I can not find it in my eclipse/workspace although report works fine in Birt preview
Thank you
0
+
-
Find more posts tagged with
Comments
Dejan8888
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
mwilliams
Hello. Sorry for the delay. Are you still having this issue?