bhaskarvanam Posted July 24, 2010 Share Posted July 24, 2010 Dear All, Suppose I have a parameter called quarterpara and monthpara.I have report query 'select * from date_dimesion $P!{wherepara}'.For wherepara ,i have a expression like this-$P{quarterpara}.equals("")?"":"where quarter=$P{quarterpara}"Explaination:If my quarterpara is blank,I will have a report query as 'select * from date_dimesion $P!{wherepara}'Else 'select * from date_dimesion where quarter=$P{quarterpara}' I am not able to achieve the desired result.I guess this is not possible in jasper.Please prove me wrong. Link to comment Share on other sites More sharing options...
tmatyashovsky Posted July 28, 2010 Share Posted July 28, 2010 Hi, Not sure if it will help, but why you are using $P!{wherepara} instead of $P{wherepara} ? Best regards,Taras Matyashovsky 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