Jump to content
Changes to the Jaspersoft community edition download ×

Using parameters to hide/show subreports or detail bands


sabel

Recommended Posts

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.

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

 

Link to comment
Share on other sites

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