ebz Posted January 14, 2016 Share Posted January 14, 2016 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 More sharing options...
zh3ntil Posted January 14, 2016 Share Posted January 14, 2016 I checked it on jasperserver 6.1 and it works perfectly even make the change on studio by using print when expression. Showing hidden column by selecting from 'Show columns' is valid and working. What jasperserver version are you using? Link to comment Share on other sites More sharing options...
hozawa Posted January 14, 2016 Share Posted January 14, 2016 Are you using the Table component to create your table?Following wiki has some information about viewing reports with a Table component on JasperReports Server.http://community.jaspersoft.com/wiki/how-disable-table-sortingfiltering-feature-jive-jasperreports-server Link to comment Share on other sites More sharing options...
ebz Posted January 15, 2016 Author Share Posted January 15, 2016 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 More sharing options...
ebz Posted January 18, 2016 Author Share Posted January 18, 2016 I finally got it working with the print when expression. I had grouped some of the columns together, so after removing the column groups the hiding/showing of columns worked fine. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now