Jump to content
Changes to the Jaspersoft community edition download ×

Hiding Empty Column Group Headers in a Table


ballinascreen

Recommended Posts

Folks,

I'm using a DataSet as a datasource for a table in on of my report detail bands. The DataSet comprises of three separate groups and therefore I have 3 corresponding header column groups. Each header column group contains a single Text Field which is used to print out pertinent headers as the groups change. However, one of my groups will not always contain a value and in these cases I would prefer that the group header cell was hidden/removed - rather than leaving a fixed space matching the predefined height of the cell.

I've tried setting various combinations of 'Remove Line When Blank' at the table level, and 'Remove Line When Blank' & 'Blank When Null' at the Text Field level and nothing seems to work. Is it possible to do this? Or am I missing something obvious?

Would appreciate any info/workrounds.... thanks.

 



Post Edited by ballinascreen at 05/31/2012 12:12
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

 Maybe you could try the following

 
Say COLUMN1, COLUMN2, COLUMN3
 
Create a copy of COLUMN3 and place it in the same position as COLUMN2
 
Then use the "Print When Expression" to define when each of the columns are visible (this will only be displayed in preview)
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...