Class SpreadsheetInlineReportResultHandler

java.lang.Object
io.jmix.reportsspreadsheetflowui.runner.SpreadsheetInlineReportResultHandler
All Implemented Interfaces:
ReportResultHandler

@Order(200) @Component("repspd_SpreadsheetInlineReportResultHandler") public class SpreadsheetInlineReportResultHandler extends Object implements ReportResultHandler
ReportResultHandler that opens the report output in the embedded spreadsheet viewer when the run context targets the spreadsheet presentation and the output format is supported by the viewer.
  • Field Details

  • Constructor Details

    • SpreadsheetInlineReportResultHandler

      public SpreadsheetInlineReportResultHandler()
  • Method Details

    • handle

      public boolean handle(ReportOutputDocument document, UiReportRunContext context)
      Handles the report output document by opening it in the spreadsheet viewer.

      Returns true if the document was successfully handled (presentation is spreadsheet and format is supported), false to pass handling to the next handler in the chain.

      Specified by:
      handle in interface ReportResultHandler
      Parameters:
      document - the generated report document
      context - the run context that produced the document
      Returns:
      true if the document was handled and further handlers should not be invoked, false to pass to the next handler
    • resolveOutputExtension

      protected String resolveOutputExtension(ReportOutputDocument document, UiReportRunContext context)