throw new ReportException("Генерация отчета отменена");
}
res = report.continueReport(chunk);
}
QueryResults results = (QueryResults) res;
UserChoiceDlg userChoiceDlg = new UserChoiceDlg(parent, results,
subreport.getActiveRows(),
subreport.getReport().getQuery().getColumns().getList());
userChoiceDlg.setVisible(true);
if(userChoiceDlg.isOK()) {
ArrayList<Integer> selection = userChoiceDlg.getResult();
if(selection.size() > 0 ) {
results.shrinkTo(selection);
subreport.setDefaultResults(results);
} else {
subreport.clearDefaultResults();