dnvsrikanth Posted January 31, 2008 Share Posted January 31, 2008 Hi all, I have a small doubt. I hope that my doubt will be resolved here. The doubt is: Can we pass two or more values to a parameter? If so how can we??? Thanks & RegardsDNV Srikanth Link to comment Share on other sites More sharing options...
dnvsrikanth Posted January 31, 2008 Author Share Posted January 31, 2008 Can anyone please resolve my doubt...its very urgent... Link to comment Share on other sites More sharing options...
sww Posted February 1, 2008 Share Posted February 1, 2008 If the report parameter is of type Object, then you could pass any Java object - you will then need to use class casts etc. to access the object within the report. e.g.Code:((YourClass)$P{parameter}).callMethod() Link to comment Share on other sites More sharing options...
dnvsrikanth Posted February 1, 2008 Author Share Posted February 1, 2008 Thanq sww, You didn't get my doubt. Let us suppose that I have created empId as parameter with datatype java.lang.Integer, my doubt is can we pass 2 or more values to that parameter??? Link to comment Share on other sites More sharing options...
fmatar Posted February 3, 2008 Share Posted February 3, 2008 I don't get your doubt, why you would you want to pass two or more values to a single parameter? Why don't you just pass on a collection or array of objects? Does that ring a bell? Link to comment Share on other sites More sharing options...
dnvsrikanth Posted February 19, 2008 Author Share Posted February 19, 2008 Hi fmatar, Thanks for ur replySuppose that i have to generate a report for some employees in an organization. The requirement is in such a way that user was given a multi-select drop-down for selecting employee id's. Here we need to send multiple values for single parameter...right??? please suggest me a correct way to implement this... Thanks & RegardsDNV Srikanth 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