kevinjia1984 Posted January 30, 2013 Share Posted January 30, 2013 Hi all,I'm new to jasper report and I'm using ireport 4.0.1 for jrxml design. Just want to ask if I put some new values in the parameter map when calling JasperFillManager.fillReport, Do I have to create some new parameters in ireport regarding the keys I set in the parameter map when calling JasperFillManager.fillReport or all the new parameters will be inside "REPORT_PARAMETER_MAP"? For example:Map parameters = new HashMap();parameters.put("value1", value1);parameters.put("value2",value2);JasperPrint jasperPrint = JasperFillManager.fillReport(myProgramStream, parameters, jasperReportDS);So in ireport, the value1 and value2 have already been in REPORT_PARAMETER_MAP or I have to create two new parameters named "value1" and "value2" in the related jrxml?Many thanks for any help. Link to comment Share on other sites More sharing options...
Solution sanbez Posted January 30, 2013 Solution Share Posted January 30, 2013 You must define params "value1" and "value2" in jrxml Link to comment Share on other sites More sharing options...
kevinjia1984 Posted January 30, 2013 Author Share Posted January 30, 2013 Thanks sanbez.And could you tell me what's inside the REPORT_PARAMETER_MAP? Link to comment Share on other sites More sharing options...
sanbez Posted January 31, 2013 Share Posted January 31, 2013 This map contain values of parameters for report execution. See http://community.jaspersoft.com/system/files/documentation/jasperreports-ultimate-guide-3.pdf Link to comment Share on other sites More sharing options...
kevinjia1984 Posted February 4, 2013 Author Share Posted February 4, 2013 Thanks, I should go through with this book 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