Class sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionControllerModule: sap/suite/ui/generic/template/ListReport/extensionAPI/NonDraftTransactionController


Constructor Summary
new sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController()Non draft transaction controller to be used in extensions of ListReport.
Method Summary
sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController with name sClassName and enriches it with the information contained in oClassInfo.
sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController.getMetadata()Returns a metadata object for class sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController.
cancel()Cancel editing
edit(oContext)Start editing one list entry
save()Save the changes which have been applied to the OData model
Constructor Detail
new sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController()
Non draft transaction controller to be used in extensions of ListReport. Breakout coding can access an instance of this class via EtensionAPI.getTransactionController. Do not instantiate yourself.

Note: Only one object can be edited at a given point in time.

Method Detail
sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController 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.NonDraftTransactionController.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.suite.ui.generic.template.ListReport.extensionAPI.NonDraftTransactionController.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
cancel()
Cancel editing
edit(oContext)
Start editing one list entry
Parameters:
{sap.ui.model.Context}oContext the context identifying the entry to be edited
save(): Promise
Save the changes which have been applied to the OData model
Returns:
{Promise} is resolved when entry is successfully saved and rejected when saving fails