monika.sudam.mali Posted May 22, 2019 Share Posted May 22, 2019 Hi Team,I am trying to access two different data sources i.e one oracle and other CSV file in same report.Please suggest me how can I achieve this Link to comment Share on other sites More sharing options...
C-Box Posted May 24, 2019 Share Posted May 24, 2019 You could define a so call "SubDataSource" within your design, where one is for accessing your oracle database via an select (Connection must be passed from Outside, when filling the report) and the second one could access your csv file (filename could be passed as parameter or hardcoded or whatever).The SubDataSources could be used for SubReports or ListElements or Crosstabs or Tables.....You could also just use the main datasource (e.g. the sql oracle one) for filling process of the MasterReport and just the CSV-SubDataSource for a integrated SubReport.So just give it a try.hth + regardsC-Box Link to comment Share on other sites More sharing options...
vanhoai.lampart Posted July 31, 2019 Share Posted July 31, 2019 i solved this problem. i pushed this solution to git.You can see this here: https://github.com/hoai/jasper-CSV-datasource-for-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