I have a report with 3 detail bands, each containing a subreport. It runs fine as is, but I would like to be able to selectively show or hide each of the bands or subreports. I am still very new to iReports, can someone help me please.
1 Answer:
Posted on August 21, 2015 at 3:03pm
With ireport or jasper studio you should be able to add parameters at report level with type and default value
For example a Boolean printDetail1 and another printDetail2
At the detail band level you will find a property "print when expression" that you can fill with your logical test in your case printDetail1==true and printDetail2==true on your other band
Since you're new to iReport, just a warning. iReport is no longer being developed. It is scheduled to be retired at the end of this year.
So, don't use it. Use Jaspersoft Studio.
I plan to migrate to JSS soon. Unfortunately, I can not be idle and must continue to learn and develop reports until then.