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?
Dejan8888
My report works fine in BIRT. But when I import in Maximo I am getting this error instead of displaying the bar chart:<br />
<br />
<strong class='bbc'>ReferenceError: "BarSeriesImpl" is not defined. at line 8 of chart script:''</strong><br />
<br />
I think it misses some class.<br />
<br />
I used this script to show me some values on Bar chart.<br />
<br />
importPackage( Packages.java.util );<br />
importPackage( Packages.org.eclipse.birt.chart.model.type.impl );<br />
<br />
<br />
function afterDataSetFilled(series, dataSet, icsc)<br />
{<br />
<br />
<strong class='bbc'>if( series.getClass() == BarSeriesImpl )</strong>{<br />
<br />
var inv =<br />
parseInt(icsc.getExternalContext().getScriptable().getPersistentGlobalVariable("IN"));<br />
var outv =<br />
parseInt(icsc.getExternalContext().getScriptable().getPersistentGlobalVariable("OUT"));<br />
var canv =<br />
parseInt(icsc.getExternalContext().getScriptable().getPersistentGlobalVariable("CANCELED"));<br />
<br />
var narray1 = new ArrayList( );<br />
narray1.add(inv);<br />
narray1.add(outv);<br />
narray1.add(canv);<br />
dataSet.setValues(narray1);<br />
}else{<br />
var catArray = new ArrayList();<br />
catArray.add("IN");<br />
catArray.add("OUT");<br />
catArray.add("CANCELED");<br />
dataSet.setValues(catArray);<br />
}<br />
<br />
}<br />
<br />
How to solve this? Does I have to import somehow this class in my system or ..?<br />
But also where to find that class? I can not find it in my eclipse/workspace although report works fine in Birt preview<br />
<br />
Thank you
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 my class does not miss.
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
CBR
I always thought that Maximo is using BIRT 2.1. Have they upgraded to 2.3.2 lately?
Can you verify that BIRT 2.3.2 is deployed on your server?
Dejan8888
Maximo 7.2.1 I think it uses 2.3.2 because all eclipse jar files installed on the system have 2.3.2 in their name.
yes as you can see file deployed in maximo which contains this class is org.eclipse.birt.chart.engine_2.3.2.r232_20090211.jar
exactly the same as the file which I am using on my local computer and where Birt chart is displayed correctly.
I do not know what setting should I do?
I am sending you also report you will it is really simple and it works with my Data Source from the system.
But when I upload it it won't work
Thanks for helping (if you have any idea)
micajblock
It appears you uncovered a bug in Maximo. It also appears you got your answer from Jason, in this other forum.
http://www.eclipse.org/forums/index.php/t/325308/