lupinus97 Posted May 26, 2018 Share Posted May 26, 2018 help,Master - Report of the detailed structure.Details (sub-reports) are printed once and are not printed.How do I print more detail repeatedly?When using sql, preview works normally.(in jasperstudio)During the web test, only the first page of the sub-report you placed on the main page is output.Subpages are not repeated on the Web.A filter was used in the sub-report.Filter expression : $ P {bkNo}. equals ($ F {bko})The sources are as follows :List<BookingNoticeModel> reportBookingNotices, List<BookingCntrModel> reportBookingCntrs;// get datasource JRDataSource bookingNoticeDs = new JRBeanCollectionDataSource(reportBookingNotices);JRDataSource bookingCntrDs = new JRBeanCollectionDataSource(reportBookingCntrs);// set datasourceMap<String, Object> parameters = new HashMap<String, Object>();Parameters. put (" su bReportDir ", reportPath ") ;parameters.put("bookingCntrDs", bookingCntrDs);// fill the report with data source objectsJasperPrint jasperPrint = JasperFillManager.fillReport(report, parameters, bookingNoticeDs); 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