antzjos Posted February 7, 2007 Share Posted February 7, 2007 Hi All, Is it possible to add columns dynamically to the report. If yes, pls let me know how to do it. thnx. Link to comment Share on other sites More sharing options...
jmurray Posted February 7, 2007 Share Posted February 7, 2007 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 More sharing options...
antzjos Posted February 8, 2007 Author Share Posted February 8, 2007 thnx much 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