JasperReport Parameter

0

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,,

iamthegopala's picture
Joined: Oct 26 2012 - 8:05am
Last seen: 7 years 7 months ago

1 Answer:

1

You may want to try $P!{whereCondition} instead of $P!{wherecondition} as it is case sensitive.

mgeise's picture
30625
Joined: Mar 5 2007 - 6:18am
Last seen: 1 year 4 months ago
thanks. actually that was a mistake in my question.i have edited it..please help me to solve this issue
iamthegopala - 8 years 6 months ago
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.
mgeise - 8 years 6 months ago

yes i found the solution..the problem was with the column name..

iamthegopala - 8 years 5 months ago
Feedback
randomness