This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have one more question.
In one of the projects for which we are thinking of using Jasper Reports, problem is number of report fields can vary.
This is metadata driven and will be decided at runtime.
So question is same jasper report can dynamically increase/decrease number of columns in output report and if yes then is there some example of this in book?
Dynamic runtime changes in the output report is a common requirement. JasperReports provides a “Print When Expression” property, which is very useful to fulfill dynamic requirements. I have covered the use of “Print When Expression” property in several recipes of the book.
For example, you can check the “Applying styles to your data based on a
logical or mathematical condition” recipe of a sample chapter named “Using Mathematical and Logical Expressions” available for free download from Packt’s Web site.
In this recipe I have used the “Print When Expression” property to show one of a pair of columns and hide the other. The show/hide decision depends on a mathematical condition. You can use this strategy in an almost infinite number of ways.
Please try the recipes of the free sample chapter and post your comments whether or not you like the way I have demonstrated how report designers can play with the “Print When Expression” property for dynamic report design.