Skip to content

OfflineOData Initialize

OfflineOData Initialize action is used to perform opening and, if needed, the initial creation of offline stores and download of data from the target OData service.

The properties defined in Action are also applicable to this action.

This action is deprecated. Please use Action.Type.ODataService.Initialize.

OfflineOData Initialize Properties

Property Type Required
DefiningRequests DefiningRequest Optional
ProgressText ProgressText Optional
Service Service Required
_Type const Required

DefiningRequests

List of defining requests. A defining request is an OData read request that the Offline OData will use to retrieves data from the target OData Service and populate in the local offline database

  • type: DefiningRequest[]

All array items must be of the type: DefiningRequest


ProgressText

ProgressText is a set of customizable text for each state to replace the progress indicator text shown during Initialize Offline OData. Specifically for ProgressText.DownloadingFile and ProgressText.DownloadingData properties, user may define dynamic parameter of {0} and/or {1} to display the size and/or size unit. When a state is not specified for customization, default text would be used.


Service

The target service


_Type

  • type: const

The value of this property must be equal to:

"Action.Type.OfflineOData.Initialize"

Action Result

The ActionResult of this action is null.


Examples

{
  "_Type": "Action.Type.OfflineOData.Initialize",
  "Service": "/MyMDKApp/Services/MyOData.service",
  "DefiningRequests": [
    {
      "Name": "MyProducts",
      "Query": "Products",
      "AutomaticallyRetrievesStreams": true
    },
    {
      "Name": "MyCustomers",
      "Query": "Customers"
    }
  ],
  "ProgressText": {
    "Opening": "Custom Opening Text",
    "Initializing": "Custom Initializing Text",
    "InitialCommunication": "Custom InitialComm Text",
    "StartingDownloadingFile": "Custom Waiting For File Text",
    "StartingDownloadingData": "Custom Waiting For Data Text",
    "Opened": "Custom Opened Text",
    "DownloadingFile": "Custom Downloading File Text {0}{1}",
    "DownloadingData": "Custom Downloading Data Text {1}{0}"
  }
}