iamthegopala Posted October 26, 2012 Share Posted October 26, 2012 hi..i am using jasperReport in my java application.. i want to pass parameters from my code, the entire where condition from code.now i am using $P!{whereCondition}.in my java code,parameterMap.put("whereCondition", "category_id=3 AND subcategory_id=1 ");but this is not working,it is showing a blank report.is there any problem in my code?please help me,, Link to comment Share on other sites More sharing options...
Solution mgeise Posted October 26, 2012 Solution Share Posted October 26, 2012 You may want to try $P!{whereCondition} instead of $P!{wherecondition} as it is case sensitive. Link to comment Share on other sites More sharing options...
iamthegopala Posted October 27, 2012 Author Share Posted October 27, 2012 thanks. actually that was a mistake in my question.i have edited it..please help me to solve this issue Link to comment Share on other sites More sharing options...
mgeise Posted October 31, 2012 Share Posted October 31, 2012 The answer is now marked as the best answer, implying that this was the solution. Did you find the problem? What this it? or do you still need help? If you still need help, I would need to see the actual query from the report as well as any logging you may have that shows the generated query or any errors that are thrown. Link to comment Share on other sites More sharing options...
iamthegopala Posted November 16, 2012 Author Share Posted November 16, 2012 yes i found the solution..the problem was with the column name.. 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