Jump to content
We've recently updated our Privacy Statement, available here ×

In Ireport if we pass map as a parameter from java to ireport how to access map values based on key of ireport field


shahkruti1695
Go to solution Solved by szaharia,

Recommended Posts

From java code I pass a parameter to ireport like this

fillReportToFile(sourceFilename, map, beanColDataSource1);

where map is something like this

AFG, [1, 2] AZE, [1, 1] BAN, [0, 1]

where key is country_name and the list are values . Now I need to access this in Ireport with key as country_name I tried following in ireport,

$P{$F{COUNTRY_NAME}}.get( 1 );

but it gives parse errors.

Can anyone suggest me some way of doing this?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...