Volt MX Foundry console User Guide: Application-level APIs > VMXFoundry.OfflineObjects.incrementalSetup
VMXFoundry.OfflineObjects.incrementalSetup
The Offline Objects incrementalSetup API allows the client application to consume the latest changes made to Volt MX Foundry app’s object services schema after a particular timestamp, without breaking the existing functionality. Similar to setup API, incrementalSetup API is also an application-level API with same method arguments.
Note: Either setup or incrementalSetup API must be invoked on first time launch of the app.
Scenarios that are supported in incrementalSetup:
- Addition and deletion of the objects in an Object Service.
-
Update operations on objects in an Object Service as:
- Addition and deletion of new non-primary key columns.
- Update properties like nullable, unique, and auto generated on non-primary key attributes.
-
Update change tracking parameters like attributes for identifying a soft delete and change tracking timeStamp field.
Note: If the timeStamp attribute is not linked to an object field, the incremental sync and delete operations will fail for records associated with that object.
Unsupported scenarios include:
- Addition, deletion, or any update on primary key attributes.
- Update attribute properties such as data type and length.
Volt MX Iris (JavaScript)
Note: Not supported for the Windows channel.
Signature
Parameters
Parameter | Type | Description | Required |
---|---|---|---|
options | JSON | Options based on which incrementalSetup is performed. | Yes |
SuccessCallback | Function | Callback invoked upon successful incremental setup. | Yes |
FailureCallback | Function | Callback invoked upon unsuccessful incremental setup. | Yes |
incrementalSetup Options
Parameter | Type | Description | Required |
---|---|---|---|
deviceDbEncryptionKey | String | password | No (it is mandatory if encrypted in previous application setup). |
treatBooleanFieldValuesAsNumeric | Boolean | If the treatBooleanFieldValuesAsNumeric key is set to false, all the boolean field values are converted to boolean type (true or false) during upload session or on reading records from local device database. When the option is set to true, fallbacks to default implementation (uploading and reading boolean field values as numeric). By default, the key is set to True. | No |
Example
Android (Java)
Signature
Parameters
Parameter | Type | Description | Required |
---|---|---|---|
options | Hashmap<String, Object> | Options based on which incrementalSetup is performed. | Yes |
syncCallback | VMXCallback | Takes onSuccess and onFailure methods. | Yes |
incrementalSetup Options
Parameter | Type | Description | Required |
---|---|---|---|
deviceDbEncryptionKey | String | password | No (it is mandatory if encrypted in previous application setup). |
treatBooleanFieldValuesAsNumeric | Boolean | If the treatBooleanFieldValuesAsNumeric key is set to false, all the boolean field values are converted to boolean type (true or false) during upload session or on reading records from local device database. When the option is set to true, fallbacks to default implementation (uploading and reading boolean field values as numeric). By default, the key is set to True. | No |
Example
iOS (Objective C)
Signature
Parameters
Parameter | Type | Description | Required |
---|---|---|---|
options | NSDictionary | Options based on which incrementalSetup is performed. | Yes |
onSuccess | VMXSuccessCompletionHandler | The function is invoked on successful incremental setup. | Yes |
onFailure | VMXFailureCompletionHandler | The function is invoked on unsuccessful incremental setup. | Yes |
incrementalSetup Options
Parameter | Type | Description | Required |
---|---|---|---|
deviceDbEncryptionKey | NSString | password | No (it is mandatory if encrypted in previous application setup). |
treatBooleanFieldValuesAsNumeric | Boolean | If the treatBooleanFieldValuesAsNumeric key is set to false, all the boolean field values are converted to boolean type (true or false) during upload session or on reading records from local device database. When the option is set to true, fallbacks to default implementation (uploading and reading boolean field values as numeric). By default, the key is set to True. | No |