Purpose

ucReportPostamble is used to put a postamble message on reports

Applies To

Search & Reporting screens

Signature

public String ucReportPostamble(
      Template tDDNames, // the template that generates the report
      int size,          // contains the current page size in rows
      int start,         // contains the row number at the beginning of the page

Notes

The method is called for each end-of-page event, so the size, start and total record count need to be examined or the returned string will go into each of the page endings. The string returned should map according to the template passed in, allowing columnar totals or other niceties. The method should return a string that contains the footer to be displayed on the output, just before the report footer.

Example

 public String ucReportPostamble (Template tDDNames,
                                     int size,
                                     int start,
                                     int total)
    throws Exception {
        SesameSession session = SesameSession.getSession();
        String reportTitle = "";
        String statusTotalFormat = "HMS";
        Report report = (Report) session.getAttribute("REPORT");

        if (report !=  null) {
            reportTitle = report.getTitle();

            if (TextManager.isStringVisible(reportTitle) 
                 && reportTitle.indexOf("EXCEL:mins")>-1) {
                statusTotalFormat = "mins";
            }
        }
        return com.extraview.usercustom.TimeInStatus.ucReportPostamble(
                                    tDDNames, 
                                    size, 
                                    start, 
                                    total, 
                                    statusTotalFormat);
    }