Jump to content

Recommended Posts

Posted

Is there a way to hide a column on a report if the column is blank or 0?

If there is a way to do this, will the hidden column NOT show up when the report goes to Excel?

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Yes, by using 'Print when Expression' property, just give it Boolean expression to your desired affect.

If you use a table element, then regardless of where the column is in the table the column will be removed and table re-sized dynamically. 

Posted

Yes, by using 'Print when Expression' property, just give it Boolean expression to your desired affect.


If you use a table element, then regardless of where the column is in the table the column will be removed and table re-sized dynamically. 


 


left click field - then look at properties tab. right click menu its not there.


  • 1 month later...
Posted

I can see the Print when Expression property and I have tried various expressions but I'm not getting the right one.  the field is $F{device_name} and if it is blank I want the column to be removed when it the Excel sheet is created.

Posted

I can make this work for strings using: new Boolean($F{off_peak_free_minutes}.trim().equals("")==false)

I have to put this expression on the column headings and the column data.

 

So far I can't get the expression right to compare with zero.

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