ajinkya_c Posted February 20, 2014 Share Posted February 20, 2014 Hi,Use java.util.collection as datatype for parameter and use it with $X{In, column name, parameter name} in your sql query.So that you can able to provide multiple values to parameter in iReport. Provide (,) comma separated multiple values to input control.Hope this helps.ThanksAjinkya Link to comment Share on other sites More sharing options...
vkumar_1 Posted February 20, 2014 Author Share Posted February 20, 2014 Hey Ajinka,thanks for help but we want to do it through SQL query. Link to comment Share on other sites More sharing options...
bchandrasekarsamiyathal Posted July 14, 2016 Share Posted July 14, 2016 Ajinkya, I tried the same format $X{In, column name, parameter name}. It threw me error like the parameter does not exist. Any ideas why? Is there no way to modify any property of the parameter to achieve multi value prompt? Thanks Link to comment Share on other sites More sharing options...
merugu.srinivas Posted November 4, 2016 Share Posted November 4, 2016 Create a dynamic Parameter like ($P{STUDY_CODE}) then change the parameter in Ur SQL Query ($P!{STUDY_CODE}).Which means add Exclamation Mark after $P. Example : select * from customer where customer_id in($P!{customer_id}) Link to comment Share on other sites More sharing options...
merugu.srinivas Posted November 4, 2016 Share Posted November 4, 2016 Create a dynamic Parameter like ($P{STUDY_CODE}) then change the parameter in Ur SQL Query($P!{STUDY_CODE}). Which means add Exclamation Mark after $P.Example :select * from customer where customer_id in ($P!{customer_id}) 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