ajay_chothani Posted March 10, 2014 Share Posted March 10, 2014 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 Link to comment Share on other sites More sharing options...
netti royala Posted March 10, 2014 Share Posted March 10, 2014 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. Link to comment Share on other sites More sharing options...
ajay_chothani Posted March 10, 2014 Author Share Posted March 10, 2014 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.<<<<<< This comment was blocked and unpublished because Project Honeypot indicates it came from a suspicious IP address. Link to comment Share on other sites More sharing options...
marianol Posted March 10, 2014 Share Posted March 10, 2014 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} 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