Constructor
new module:argos/_LegacySDataDetailMixin()
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
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. |
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. |
onRequestDataSuccess(entry)
Handler when a request to SData is successful
Parameters:
Name | Type | Description |
---|---|---|
entry |
Object | The SData response |
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 |
requestData()
Initiates the SData request.