Package io.jmix.reportsflowui.runner
Class UiReportRunContext
java.lang.Object
io.jmix.reportsflowui.runner.UiReportRunContext
Class stores the information required for report running from UI. The instance of the class may be created using the
constructor or using the
In addition to options required to run a report, it is possible to control the following ones:
Note: if a report runs in the background, the view from which the report runs should be specified as well.
Creation examples:
FluentUiReportRunner
bean.
In addition to options required to run a report, it is possible to control the following ones:
- Show dialog to input the report parameters before a run or not
- Execute report generation synchronously or in the background
Note: if a report runs in the background, the view from which the report runs should be specified as well.
Creation examples:
UiReportRunContext context = new UiReportRunContext(report) .addParam("customers", customersList) .setOutputNamePattern("Customers") .setOwner(view) .setInBackground(true) .setParametersDialogShowMode(ParametersDialogShowMode.NO); UiReportRunContext context = new UiReportRunContext(report) .setReportTemplate(template) .setOutputType(ReportOutputType.PDF) .setParams(paramsMap); UiReportRunContext context = new UiReportRunContext(report) .setOutputNamePattern("Customers") .setParametersDialogShowMode(ParametersDialogShowMode.IF_REQUIRED);
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
View<?>
getOwner()
setInBackground
(boolean inBackground) setOutputNamePattern
(String outputNamePattern) setParametersDialogShowMode
(ParametersDialogShowMode parametersDialogShowMode) setReportRunContext
(ReportRunContext reportRunContext) setReportTemplate
(ReportTemplate template)
-
Constructor Details
-
UiReportRunContext
public UiReportRunContext() -
UiReportRunContext
-
-
Method Details
-
getReportRunContext
-
setReportRunContext
-
getOwner
-
setOwner
-
getInBackground
public boolean getInBackground() -
setInBackground
-
getParametersDialogShowMode
-
setParametersDialogShowMode
public UiReportRunContext setParametersDialogShowMode(@Nullable ParametersDialogShowMode parametersDialogShowMode) -
setReport
-
setParams
-
addParam
-
setReportTemplate
-
setOutputType
-
setOutputNamePattern
-
getReport
-
getOutputType
-
getParams
-
getOutputNamePattern
-
getReportTemplate
-