Common base class for sap.ui.generic.app.transaction.TransactionController
and sap.ui.generic.app.transaction.DraftController
, which offers basic functionality to invoke OData functions and actions as well as OData CRUD functions in general.
Constructor for base class for controller instances.
new sap.ui.generic.app.transaction.BaseController(oModel, oQueue)
Param | Type | Default Value | Description |
---|---|---|---|
oModel | sap.ui.model.odata.ODataModel | The OData model currently used |
|
oQueue | sap.ui.generic.app.util.Queue | Optional HTTP request queue |
Method | Description |
---|---|
attachFatalError |
Attaches event handler |
destroy |
Frees all resources claimed during the life-time of this instance. |
detachFatalError |
Detaches event handler |
sap.ui.generic.app.transaction.BaseController.extend |
Creates a new subclass of class sap.ui.generic.app.transaction.BaseController with name
|
sap.ui.generic.app.transaction.BaseController.getMetadata |
Returns a metadata object for class sap.ui.generic.app.transaction.BaseController. |
hasClientMessages |
Checks for client messages. |
triggerSubmitChanges |
Triggers submitting the currently tracked changes to the back-end. |
updateMultipleEntities |
Update multiple entities |
Attaches event handler fnFunction
to the fatalError
event.
Param | Type | DefaultValue | Description |
---|---|---|---|
fnFunction | function |
The function to call when the event occurs |
|
oListener | object |
Object on which to call the given function |
Detaches event handler fnFunction
from the fatalError
event.
Param | Type | DefaultValue | Description |
---|---|---|---|
fnFunction | function |
The function to call when the event occurs |
|
oListener | object |
Object on which to call the given function |
Creates a new subclass of class sap.ui.generic.app.transaction.BaseController with name sClassName
and enriches it with the information contained in oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.base.EventProvider.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |
Returns a metadata object for class sap.ui.generic.app.transaction.BaseController.
Triggers submitting the currently tracked changes to the back-end.
Param | Type | DefaultValue | Description |
---|---|---|---|
mParameters | Object<string,any> |
Parameters to control the submit behavior |
|
noBlockUI | boolean |
If set to |
|
noShowResponse | boolean |
If set to |
|
noShowSuccessToast | boolean |
If set to |
|
successMsg | string |
An optional success message |
|
failedMsg | string |
An optional error message |