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 datasource
Map<String, Object> parameters = new HashMap<String, Object>();
Parameters. put (" su bReportDir ", reportPath ") ;
parameters.put("bookingCntrDs", bookingCntrDs);
// fill the report with data source objects
JasperPrint jasperPrint = JasperFillManager.fillReport(report, parameters, bookingNoticeDs);