Monday, 9 September 2013

JasperReports: unable to get URL parameter to work

JasperReports: unable to get URL parameter to work

I'm trying to modify an existing Jasper Report. The existing one works
great, and retrieves a couple of parameters from the URL of the page that
generates it.
I want to pass a third parameter to the report, but after hours trying I
have not been able to get it to work (the parameter value is always null
or the default value, no matter what value is passed in the URL).
I have tried to figure out how it was done with the parameters that are
already working, but I didn't find anything, either with the JasperReports
UI or studying the resulting (jr)xml file.
What really puzzles me is that the parameter names in the URL are "id" and
"date", but they are referred to in the report as "p_id" and "p_date". I
can't find where that transformation or mapping takes place, so I think
that is the step I'm missing.
I'll be very thankful if you can give me any hint!!!

No comments:

Post a Comment