Jump to content
Changes to the Jaspersoft community edition download ×

dynamic addition of columns???


Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Basically no. A report just is a snapshot after all - you have to define all your columns before JasperReports can fill the output. So once the report generation is underway there's no way to change the source query.


BUT!!! You can do it in reverse. Make sure your query returns all the columns that you will ever need to display and then selectively remove them from you report.


Please note that the layout control is particularly difficult with this option. If you want to avoid leaving gaps where columns are omitted you will need to use some very intelligent Text Field and Print When expressions.

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