Class: _LegacySDataListMixin

_LegacySDataListMixin()

Enables legacy SData operations for the List view. Adds the original SData operations to the view, use this in addition to _SDataListMixin.

Constructor

new _LegacySDataListMixin()

Source:

Methods

createRequest(o) → {Object}

Creates SDataResourceCollectionRequest instance and sets a number of known properties. List of properties used from `this.property/this.options.property`: `pageSize`, `contractName`, `resourceKind`, `resourceProperty`, `resourcePredicate`, `querySelect/select`, `queryOrderBy/orderBy`, `queryInclude`, `queryWhere/where`, `query` The where parts are joined via `AND`. The Start Index is set by checking the saved `this.entries` and if its `$startIndex` and `$itemsPerPage` greater than 0 -- then it adds them together to get the instead. If no feed or not greater than 0 then set the index to 1.
Parameters:
Name Type Description
o object Optional request options.
Deprecated:
  • Yes
Source:
Returns:
Sage.SData.Client.SDataResourceCollectionRequest instance.
Type
Object

onRequestDataAborted(response, o)

Handler when an a request is aborted from an SData endpoint. Clears the `this.options` object which will by default force a refresh of the view.
Parameters:
Name Type Description
response Object The response object.
o Object The options that were passed when creating the Ajax request.
Deprecated:
  • Yes
Source:

onRequestDataFailure(response, o)

Handler when an error occurs while request data from the SData endpoint.
Parameters:
Name Type Description
response Object The response object.
o Object The options that were passed when creating the Ajax request.
Deprecated:
  • Yes
Source:

onRequestDataSuccess(feed)

Handler when a request to SData is successful
Parameters:
Name Type Description
feed Object The SData response
Deprecated:
  • Yes
Source:

processFeed(feed)

Processes the feed result from the SData request and renders out the resource feed entries. Saves the feed to `this.feed` and saves each entry to the `this.entries` collection using the entries `$key` as the key.
Parameters:
Name Type Description
feed Object The SData result
Deprecated:
  • Yes
Source:

requestData()

Initiates the SData request.
Source: