How to link Input Control of jasper server with report parameter

0

Hi,

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.

Thanks,
Ajay
 

ajay_chothani's picture
Joined: Mar 9 2014 - 10:29pm
Last seen: 4 years 8 months ago
Parameter name and jasper server input control name should be same..you 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 - 5 years 1 month 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 - 5 years 1 month ago

1 Answer:

1

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
4267
Joined: Sep 13 2011 - 8:04am
Last seen: 6 months 3 weeks ago
Feedback
randomness