BIRT Exchange Forum: Missing class from Birt how to add in system and where to find class? - BIRT Exchange Forum

Jump to content


 

BIRT Poll: To best make a table fill a pdf page before breaking (PL=page layout, PBI=page break interval) set:

PL: auto, PBI: 0PL: fixed, PBI: 0PL: auto, PBI: 1000000PL: fixed, PBI: 1000000
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Missing class from Birt how to add in system and where to find class? ReferenceError: “BarSeriesImpl” is not defined Rate Topic: -----

#1 User is offline   Dejan8888 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 17
  • Joined: 14-May 12


Posted 25 May 2012 - 02:44 AM

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

+
-
0

#2 User is offline   Dejan8888 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 17
  • Joined: 14-May 12


Posted 25 May 2012 - 03:19 AM

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
0

#3 User is offline   mwilliams Icon

  • BIRT Guru
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 12937
  • Joined: 16-May 08


Posted 01 June 2012 - 07:47 AM

Hello. Sorry for the delay. Are you still having this issue?
Regards,

Michael

Twitter
Facebook
Blog
Yahoo: mwilliams_actuate@yahoo.com
Google: mwilliams.actuate@gmail.com
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users