diff --git a/src/main/java/org/spin/report_engine/service/Service.java b/src/main/java/org/spin/report_engine/service/Service.java index a522ac2..113b29b 100644 --- a/src/main/java/org/spin/report_engine/service/Service.java +++ b/src/main/java/org/spin/report_engine/service/Service.java @@ -135,13 +135,14 @@ public static Report.Builder getView(GetReportRequest request) { int pageNumber = LimitUtil.getPageNumber(SessionManager.getSessionUuid(), request.getPageToken()); int limit = LimitUtil.getPageSize(request.getPageSize()); int offset = (pageNumber - 1) * limit; - ReportBuilder reportBuilder = ReportBuilder.newInstance().withPrintFormatId(request.getPrintFormatId()).withInstanceId(request.getInstanceId()); + ReportBuilder reportBuilder = ReportBuilder.newInstance().withPrintFormatId(request.getPrintFormatId()); if(!Util.isEmpty(request.getFilters())) { reportBuilder.withFilters(FilterManager.newInstance(request.getFilters()) .getConditions()); } reportBuilder.withReportViewId(request.getReportViewId()); reportBuilder.withSummary(request.getIsSummary()); + reportBuilder.withInstanceId(request.getInstanceId()); if(request.getRecordId() > 0 && !Util.isEmpty(request.getTableName())) { MTable table = MTable.get(Env.getCtx(), request.getTableName());