Jump to content
We've recently updated our Privacy Statement, available here ×

Hide columns on reports


mpiaser

Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

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.


Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

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.

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