mavirroco Posted July 24, 2010 Share Posted July 24, 2010 hi folks...im new in jasper reports formum...so i want ask if REPORT_PARAMETERS_MAP is only for subreports? i want send parameters via REPORT_PARAMETERS_MAP for my app in java.. Map mymap=new HashMap();mymap.put("foo","bar");maps.put("REPORT_PARAMETERS_MAP",mymap); and get this on jrxml like this $P{REPORT_PARAMETERS_MAP}.get("foo") i hope someboy can help me,... chears Manuel Rodriguez Coriamavirroco@gmail.comTarija, Bolivia Link to comment Share on other sites More sharing options...
lucianc Posted July 29, 2010 Share Posted July 29, 2010 mavirrocoWrote: Map mymap=new HashMap(); mymap.put("foo","bar"); maps.put("REPORT_PARAMETERS_MAP",mymap); Put the values directly in the map you sent to the fillReport method, i.e. maps.put("foo", "bar")HTH,Lucian Link to comment Share on other sites More sharing options...
mavirroco Posted July 29, 2010 Author Share Posted July 29, 2010 thanks lucian butif i do this not recognize in jrxml this parameterif i do this.... maps.put("foo", "bar") $P{REPORT_PARAMETERS_MAP}.get("foo") this is null my idea is send all my parameters via this parameter on REPORT_PARAMETERS_MAPany ideas? Link to comment Share on other sites More sharing options...
lucianc Posted July 30, 2010 Share Posted July 30, 2010 That works fine for me. Are you sending "maps" when calling JasperFillManager.fillReport()?Regards,Lucian Link to comment Share on other sites More sharing options...
mavirroco Posted July 30, 2010 Author Share Posted July 30, 2010 yes i send all parameters......i send ok well on my java...but the problem is when i set $P{REPORT_PARAMETERS_MAP}.get("foo") on jrxml this show nulland if i put $P{foo} showme error when i compile the report.... i search in docs and never said how to use a single parameter type java.util.Map the real problem for me is that in jrxml this cant read ... any ideas? Link to comment Share on other sites More sharing options...
lucianc Posted August 9, 2010 Share Posted August 9, 2010 I don't know why $P{REPORT_PARAMETERS_MAP}.get("foo") doesn't work for you. If you have a self-contained sample to illustrate that, we could look into it.Regards,Lucian 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