Jump to content

suppress group header/footer if only one group is


BatiB80

Recommended Posts

Hi,

 

is it possible to suppress the group header and -footer if I only have one group.

 

In detail: We use the same report layout in our subsidiaries and in the headquarter. When creating a report we group by the subsidiaries. If we run the report in a subsidiary we only get data for this single location, so we only have one group. If we create the report at the headoffice, we'll get data for all localtions and will have more groups. The group header- and footer should only be displayed for the headoffice, as it contains for example the subsidiary name which. This information isn't needed when creating the report for only one subsidiray.

 

Thanks in advance for your replies.

Sebastian

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi Betty,

 

thanks for the answer. Yes, this is possible and I already thought about it. But to be serious this is not that pretty solution. Isn't jasper able to determine the number of groups so that I can use this in the suppress clause???

 

Regards,

Sebastian

Link to comment
Share on other sites

BatiB80 wrote:

Isn't jasper able to determine the number of groups so that I can use this in the suppress clause???

 

I'm afraid not, because "print when expressions" are evaluated at the moment a band start to render, and at the moment the first group header gets render the engine cannot know how many groups will the report contain.

 

Regards,

Lucian

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