bhuvaneshwari.m Posted October 29, 2013 Share Posted October 29, 2013 Can I use the same data sets for all the sub reports I am using in a report ? Link to comment Share on other sites More sharing options...
H Mendoza Posted October 29, 2013 Share Posted October 29, 2013 Hi there - A data source is a consumable object that is used for feeding a report only once. As stated in the iReport Ultimate Guide: "For JasperReports to retrieve data and fill the subreport, you have to set the subreport data source. Usually we have three options: Use an SQL query and the same JDBC connection as the parent (super-easy case); or Use a different type of data source (such as an XML file) and some data source elements to create an expression to create or pass the required data source instance. In very special circumstances, we can pass no data at all to the subreport. We will explain with this last option in depth since it provides a way to simulate inclusion of static portions of documents (like headers, footers, backgrounds, and so on)." Good luck with your report. 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