Class: module:argos/_LegacySDataDetailMixin

module:argos/_LegacySDataDetailMixin()

Enables legacy SData operations for the Detail view.

Constructor

new module:argos/_LegacySDataDetailMixin()

Source:

Methods

createRequest() → {Object}

Creates Sage.SData.Client.SDataSingleResourceRequest instance and sets a number of known properties.

List of properties used this.property/this.options.property:

/key, resourceKind, querySelect, queryInclude, queryOrderBy, and contractName

Source:
Returns:

Sage.SData.Client.SDataSingleResourceRequest 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.

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.

Source:

onRequestDataSuccess(entry)

Handler when a request to SData is successful

Parameters:
Name Type Description
entry Object

The SData response

Source:

processEntry(entry)

Saves the SData response to this.entry and invokes processLayout by passing the customized layout definition. If no entry is provided, empty the screen.

Parameters:
Name Type Description
entry Object

SData response

Source:

requestData()

Initiates the SData request.

Source: