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

Hide column in table by use of property


ebz

Recommended Posts

I have a table were I want to hide some of the columns by default, but the user should be able to choose to show the columns.

I would like to do this without the use of inout controls. Is that possible?

If I use the print when expression = Boolean.FALSE on a column, this column is hidden in the report. The column is listed under Show columns when I run the report, but nothing happens when I click it. Is there a property I can set on the column so that the column is not visible by default, but in the table the user can click to show the column?

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Thans for the reply.

I would like to have sorting and filtering on my table, so I can't set  net.sf.jasperreports.components.table.interactive = false.

I would instead add a property to a column where I say something like visible = false, and then the column is hidden by default in the report, but the user can click on a column in table and see the hidden column in the "Show columns" list. The problem is that I havn't found any property to use for this? Is it possible?

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