Package org.idempiere.ui.zk.report
Class ReportFormatLoader
java.lang.Object
org.idempiere.ui.zk.report.ReportFormatLoader
Builds the list of print formats the report viewer offers to a role.
The role checks live here so that they apply to every
IReportFormatSelector.-
Method Summary
Modifier and TypeMethodDescriptionstatic List<ReportFormatEntry>load(MPrintFormat current, int windowId, int selectedFormatId) Load the print formats of the current table that the login role (MRole.getDefault()) may read, followed by the create actions if that role may create print formats.
-
Method Details
-
load
public static List<ReportFormatEntry> load(MPrintFormat current, int windowId, int selectedFormatId) Load the print formats of the current table that the login role (MRole.getDefault()) may read, followed by the create actions if that role may create print formats.- Parameters:
current- print format shown in the viewerwindowId- AD_Window_ID the report was started from, 0 if noneselectedFormatId- AD_PrintFormat_ID that will be selected, used for the window access check of the create actions- Returns:
- immutable list, formats ordered by name
-