Methods
-
<static> defaultSuccess(data)
-
Default success handler for OData.
Parameters:
Name Type Description dataData to process. -
<static> parseMetadata(csdlMetadataDocument) → {Object}
-
Parses the csdl metadata to ODataJS metatdata format. This method can be used when the metadata is retrieved using something other than odatajs
Parameters:
Name Type Description csdlMetadataDocumentstring A string that represents the entire csdl metadata. Returns:
An object that has the representation of the metadata in odatajs format.- Type
- Object
-
<static> read(urlOrRequest, success, error, handler, httpClient, metadata)
-
Reads data from the specified URL.
Parameters:
Name Type Argument Description urlOrRequestURL to read data from. successfunction <optional>
- errorfunction <optional>
- handlerObject <optional>
- httpClientObject <optional>
- metadataObject <optional>
- -
<static> request(request, success, error, handler, httpClient, metadata)
-
Sends a request containing OData payload to a server.
Parameters:
Name Type Argument Description requestObject Object that represents the request to be sent. successfunction <optional>
- errorfunction <optional>
- handlerObject <optional>
- httpClientObject <optional>
- metadataObject <optional>
- -
<inner> dispatchHandler(handlerMethod, requestOrResponse, context)
-
Dispatches an operation to handlers.
Parameters:
Name Type Description handlerMethodString Name of handler method to invoke. requestOrResponseObject request/response argument for delegated call. contextObject context argument for delegated call.