How to link Input Control of jasper server with report parameter


I am beginner to the Jasper(Using "JasperReports Server 5.5" and "Jaspersoft Studio Profesional 5.5.0"). I have created the stand alone Input control(say "IC1") in the server and used that control in the report. I am also using parameter(say "P1") in my report. I want to link this Input control with parameter.What I want is the option selected in Input will be filtered through the parameter in the query.

Please let me know how to achieve this functionality.

Your help will be appreciated.


ajay_chothani's picture
Joined: Mar 9 2014 - 10:29pm
Last seen: 8 years 7 months ago
Parameter name and jasper server input control name should be can pass in query $P{IC1}..and before pass this parameter , you should define this parameter in .jrxml file. .. now you can pass this parameter.
netti royala - 9 years 2 weeks ago

Hi Netti,

Thanks for the reply,

My report contains the same parameter name as of Input control. I have also used this parameter name in the qery filter.
When I individually run the report through jaspersoft studio, the results are filtered but when I run this through the server, the selection of option has no effects on the results.

Project Honeypot indicates it came from a suspicious IP address.
ajay_chothani - 9 years 2 weeks ago

1 Answer:

As @netti said the in the comment the Parameter Name in the JRXML file has to match the Input control ID of the input control you created in the server.

So if the ID of your input controls is IC1, that will be passed to the report as the parameter $P{IC1}

marianol's picture
Joined: Sep 13 2011 - 8:04am
Last seen: 4 years 5 months ago