Jump to content
We've recently updated our Privacy Statement, available here ×

Intersting doubt -try if u can help


bhaskarvanam

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...