shahkruti1695 Posted May 22, 2018 Share Posted May 22, 2018 From java code I pass a parameter to ireport like thisfillReportToFile(sourceFilename, map, beanColDataSource1);where map is something like thisAFG, [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 More sharing options...
Solution szaharia Posted May 22, 2018 Solution Share Posted May 22, 2018 Try((List)($P{REPORT_PARAMETERS_MAP}.get($F{COUNTRY_NAME}))).get(1) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now