Problem on set global variable [message #1009160] |
Thu, 14 February 2013 10:13  |
Eclipse User |
|
|
|
Hi all,
i have this problem: on onFetch of one Data Set i insert one global varible like this:
reportContext.setPersistentGlobalVariable("MARKER_MIN","2");
in a chart i try to use this varible in this way:
function beforeDrawMarkerLine(axis, markerLine, icsc){
importPackage(Packages.org.eclipse.birt.chart.model.data.impl);
importPackage(Packages.org.eclipse.birt.chart.model.component.impl);
var val=icsc.getExternalContext().getScriptable().getPersistentGlobalVariable("MARKER_MIN");
markerLine.setValue(NumberDataElementImpl.create(val)) ;
}
but i received this error:
Can't find method org.eclipse.birt.chart.model.data.impl.NumberDataElementImpl.create(null).
I used also SetGlobalVariable and getGlobalVariable but i received the same error
what is wrong?
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03058 seconds