Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to fill a list
eddy00
Hi,<br />
<br />
I created a report with a chart. Because i wanted to modify my chart, i wrote a script (onRender).<br />
<br />
it shows like this:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
importPackage(Packages.com.ibm.icu.util);
listNew = 0;
function afterDataSetFilled( series, dataSet, icsc )
{
importPackage(Packages.org.eclipse.birt.chart.model.attribute.impl);
importPackage(Packages.com.ibm.icu.util);
...
var i=1;
listNew.add(i);
}
function beforeGeneration( chart, icsc )
{
...
for(i=0; i<listNew.length; i=i+1){
target_ml = listNew[i];
}
}
</pre>
<br />
The listNew will never be filled with datas. Why?
Find more posts tagged with
Comments
mwilliams
Hi eddy00,
What are you trying to do to your chart? Maybe I can help.