Hallo,
my report contains several subreports. main report and subReports have all the same database definition in the .rpt file (java beans connectivity).
at runtime i set the datasource for the main report:
databaseController.setDataSource(reportRslt,"getQueriesUsers", "getQueriesUsers");
reportRslt is a java resultSet.
since this reportRslt is exactly the data needed for the subReports i set it as dataSource for the subreport:
subreportController.setDataSource("GeneralModules",reportRslt,"getQueriesUsers","getQueriesUsers")
when the report is being generated i get an unexpected database connector exception.
if i omit the following code line:
subreportController.setDataSource("GeneralModules",reportRslt,"getQueriesUsers","getQueriesUsers")
there is no exception and it seems that the subReports get their data by themself.
is there a way to set the subReport's datasource at runtime to a resultSet without getting the exception?
or maybe is it possible that the reportDocument will internally pass on the datasource from the main report to the subreports?
Best regards
kerenor