Is there any way to add parameters conditionally in iReport?
In one of my report I want to pass parameter based on its value. Following is report query:
select name,desi,class from student where class=$P{calss} AND joinYear=$P{joinYear}
I want to add joinYear condition only if joinYear is passed, if value of joinYear is blank then only one condition should apply.
Is there any way to check condition in report query in iReport?