@StudioAction(target="io.jmix.ui.component.ListComponent",
description="Runs the reports associated with current screen or list component")
@ActionType(value="runReport")
public class RunReportAction
extends io.jmix.ui.action.ListAction
Should be defined in the screen that is associated with Report
. Should be defined for a Button
or a list component (Table
, DataGrid
, etc.).
io.jmix.ui.action.BaseAction.EnabledRule
io.jmix.ui.action.Action.ActionPerformedEvent, io.jmix.ui.action.Action.AdjustWhenScreenReadOnly, io.jmix.ui.action.Action.ExecutableAction, io.jmix.ui.action.Action.HasPrimaryState, io.jmix.ui.action.Action.HasSecurityConstraint, io.jmix.ui.action.Action.HasTarget, io.jmix.ui.action.Action.MainTabSheetAction, io.jmix.ui.action.Action.ScreenOpeningAction, io.jmix.ui.action.Action.SecuredAction, io.jmix.ui.action.Action.Status
Modifier and Type | Field and Description |
---|---|
protected io.jmix.core.DataManager |
dataManager |
static java.lang.String |
DEFAULT_LIST_OF_ENTITIES_ALIAS |
static java.lang.String |
DEFAULT_SINGLE_ENTITY_ALIAS |
static java.lang.String |
ID |
protected ReportsClientProperties |
reportsClientProperties |
protected io.jmix.ui.ScreenBuilders |
screenBuilders |
protected UiReportRunner |
uiReportRunner |
Constructor and Description |
---|
RunReportAction() |
RunReportAction(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerform(io.jmix.ui.component.Component component) |
protected void |
openLookup(io.jmix.ui.screen.FrameOwner screen) |
protected void |
openReportParamsDialog(Report report,
io.jmix.ui.screen.FrameOwner screen) |
protected void |
runReports(java.util.Collection<Report> reports,
io.jmix.ui.screen.FrameOwner screen) |
void |
setDataManager(io.jmix.core.DataManager dataManager) |
void |
setIcons(io.jmix.ui.icon.Icons icons) |
void |
setMessages(io.jmix.core.Messages messages) |
void |
setReportsClientProperties(ReportsClientProperties reportsClientProperties) |
void |
setScreenBuilders(io.jmix.ui.ScreenBuilders screenBuilders) |
void |
setUiReportRunner(UiReportRunner uiReportRunner) |
getTarget, setTarget, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcut
addActionPerformedListener, addEnabledRule, isApplicable, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombination
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
public static final java.lang.String ID
public static final java.lang.String DEFAULT_SINGLE_ENTITY_ALIAS
public static final java.lang.String DEFAULT_LIST_OF_ENTITIES_ALIAS
protected io.jmix.core.DataManager dataManager
protected io.jmix.ui.ScreenBuilders screenBuilders
protected UiReportRunner uiReportRunner
protected ReportsClientProperties reportsClientProperties
public RunReportAction()
public RunReportAction(java.lang.String id)
@Autowired public void setIcons(io.jmix.ui.icon.Icons icons)
@Autowired public void setMessages(io.jmix.core.Messages messages)
@Autowired public void setScreenBuilders(io.jmix.ui.ScreenBuilders screenBuilders)
@Autowired public void setDataManager(io.jmix.core.DataManager dataManager)
@Autowired public void setUiReportRunner(UiReportRunner uiReportRunner)
@Autowired public void setReportsClientProperties(ReportsClientProperties reportsClientProperties)
public void actionPerform(io.jmix.ui.component.Component component)
actionPerform
in interface io.jmix.ui.action.Action
actionPerform
in class io.jmix.ui.action.BaseAction
protected void openLookup(io.jmix.ui.screen.FrameOwner screen)
protected void runReports(java.util.Collection<Report> reports, io.jmix.ui.screen.FrameOwner screen)
protected void openReportParamsDialog(Report report, io.jmix.ui.screen.FrameOwner screen)