abstract class sap.ui.model.ClientModel

Control sample: sap.ui.model.ClientModel
Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/model/ClientModel
Application Component: CA-UI5-COR

Model implementation for Client models


Constructor

Constructor for a new ClientModel.

new sap.ui.model.ClientModel(oData?)
Param Type Default Value Description
oData? string

URL where to load the data from


Methods Overview

Method Description
destroy

References:

  • sap.ui.model.Model.prototype.destroy

sap.ui.model.ClientModel.extend

Creates a new subclass of class sap.ui.model.ClientModel 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.model.Model.extend.

forceNoCache

Force no caching.

getData

Returns the current data of the model.

Be aware that the returned object is a reference to the model data so all changes to that data will also change the model data.

sap.ui.model.ClientModel.getMetadata

Returns a metadata object for class sap.ui.model.ClientModel.

updateBindings

update all bindings

destroy

References:

sap.ui.model.ClientModel.extend

Creates a new subclass of class sap.ui.model.ClientModel 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.model.Model.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

forceNoCache

Force no caching.

Param Type DefaultValue Description
bForceNoCache boolean false

whether to force not to cache

getData

Returns the current data of the model.

Be aware that the returned object is a reference to the model data so all changes to that data will also change the model data.

sap.ui.model.ClientModel.getMetadata

Returns a metadata object for class sap.ui.model.ClientModel.

updateBindings

update all bindings

Param Type DefaultValue Description
bForceUpdate boolean

true/false: Default = false. If set to false an update will only be done when the value of a binding changed.