disable table filtering/sorting (headertoolbar) in JRS 5.5

I would like to know if there is a way to not have to not have the headertoolbar show up when clicking on table headers, and thus prevent users from messing with the report.

I tried http://community.jaspersoft.com/wiki/disable-filtering-table-element but from what I can tell, that does nothing at all in 5.5.

d.moonen's picture
109
Joined: Oct 31 2013 - 1:47am
Last seen: 5 years 6 months ago

1 Answer:

In jasperreports there is a boolean property that controls the interactivity at table and column levels:
net.sf.jasperreports.components.table.interactive
 
You can set it in any of these places: globally(jasperreports.properties), per report(*.jrxml), per table or per table column.
 
This property defaults to 'true' in default.jasperreports.properties from jasperreports jar.
 
At column level, if no property is set, the one for the table is taken into account. If the table doesn't have this property, it is taken from the report, and so forth.
If at least one column has this property set to 'true' and the table's interactivity is turned off, the table will become interactive only for this column( or columns).
narcism's picture
5510
Joined: Nov 22 2010 - 12:39am
Last seen: 4 hours 6 min ago

Are all these configuration options for the interactive table documented somewhere? Are there examples of disabling it at different levels?

cprimeau - 8 years 6 months ago
Feedback