jkeri Posted May 30, 2018 Share Posted May 30, 2018 I have a request from a user that incorporates the use of an EXCEL sheet from which to pull/extract data from an oracle table.I have two data adapters set, one for the EXCEL nd one for the ORacle table.Looks like I will have to use a subreport to display the Oracle table and the main report will be the EXCEL. Is this possible? This is our first attempt at using an EXCEL file and an ORacle Table in the same report. Link to comment Share on other sites More sharing options...
reportdev Posted June 1, 2018 Share Posted June 1, 2018 First Read this https://community.jaspersoft.com/wiki/how-use-multiple-data-sources-jaspersoft-studio-or-jasperreports-serverand if not working thenI think this is possible. but it needs some java coding.Main dataset would query Excel spreadsheet - this is normalSubreport dataset would query Oracle - this is where it gets trickyusually the same connection string is passed in to the subreport from the main report.but here two different datasources should be used, so REPORT_DATA_SOURCE parameter for the subreport from main report should be set to Oracle. If you are using java to generate this report, then you can pass this REPORT_DATA_SOURCE (JRDataSource object) parameter into the main report and then pass it into the subreport 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