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)
Using HashMap in Birt report
petr.mensk
Hello,
how do I use HashMap in report script?I would like to create HashMap in initialize script (I am using it lately for merging two data sets) but my code is not working (initialize script just passes without execution, so there is obviously some mistake). I tried following
importPackage(Packages.java.util);
var Map idSumMap = new HashMap();
and the
var Packages.java.util.Map idSumMap = new Packages.java.util.HashMap();
also both versions without with the var keyword.
None of these was working so can you please give me some advice?Thanks.
Find more posts tagged with
Comments
petr.mensk
Problem solved - I didn't realize that I shouldn't specify the object type on the left side.
kclark
I was just about to reply, let me know if you need anymore help with it. There is also an example of using a hashmap with a chart at <a class='bbc_url' href='
http://www.birt-exchange.org/org/devshare/designing-birt-reports/1444-push-hashmap-to-chart-from-report-table/'>this
devshare</a>