How to access Parameters Map passed to Jasper Report

Hello,

I built a report based on your sample JRXML Report example.
The report has an entity-type parameter, whose fields I can use in the jasper template.
But I’ve added more than one parameter to the report (a string, another entity etc…) but I couldn’t figure out how to access these parameters in the main report template. I tried adding $P{my_parameter_alias} that I’ve added in the parameters section of both CUBA report definition and in Jasper. I’ve tried using REPORT_PARAMETERS_MAP with get(“alias”) method but with no success.
I am also a beginner with Jasper and the info in the docs are scarce.

Thank you

1 Like

Hi @tudorghircoias,

Try to read these :slight_smile:

https://www.cuba-platform.com/discuss/t/working-jasper-reporting-on-cuba/4582

https://www.tutorialspoint.com/jasper_reports/jasper_report_parameters.htm