Class sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPIModule: sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI


Constructor Summary
new sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPI()API to be used in extensions of ListReport.
Method Summary
sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPI.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPI with name sClassName and enriches it with the information contained in oClassInfo.
sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPI.getMetadata()Returns a metadata object for class sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPI.
attachToView(oControl)Attaches a control to the current View.
getSelectedContexts()Get the list entries currently selected
getTransactionController()Get the transaction controller for editing actions on the list Note: Currently implemented for non draft case
invokeActions(sFunctionName, aContext)Invokes multiple time the action with the given name and submits changes to the back-end.
refreshTable()Refreshes the List from the backend
Constructor Detail
new sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPI()
API to be used in extensions of ListReport. Breakout coding can access an instance of this class via this.extensionAPI. Do not instantiate yourself.
Method Detail
sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPI.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPI with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in Object.extend.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPI.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPI.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
attachToView(oControl)
Attaches a control to the current View. Should be called whenever a new control is created and used in the context of this view. This applies especially for dialogs, action sheets, popovers, ... This method cares for defining dependency and handling device specific style classes
Parameters:
{sap.ui.core.Control}oControl the control to be attached to the view
getSelectedContexts(): sap.ui.model.Context[]
Get the list entries currently selected
Returns:
{sap.ui.model.Context[]} contains one entry per line selected
Get the transaction controller for editing actions on the list Note: Currently implemented for non draft case
Returns:
{sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController} the transaction controller
invokeActions(sFunctionName, aContext): Promise
Invokes multiple time the action with the given name and submits changes to the back-end.
Parameters:
{string}sFunctionName The name of the function or action
{array}aContext The given binding contexts
Exceptions:
{Error} Throws an error if the OData function import does not exist or the action input parameters are invalid
Returns:
{Promise} A Promise for asynchronous execution of the action
refreshTable()
Refreshes the List from the backend