Hello fellow developers!
I'm wondering how the offline data sync with SyncUnits should be implemented according to the Outsystems best-practices. I've taken a look at the following documentation of Outsystems and got some questions regarding the OfflineDataSync that involves multiple Entities and SyncUnits.
Background information: (Only an example..)
Lets say we have a mobile application, that contains an overview of Products and SalesPersons. The datamodel looks like this:
* The server data model contains the same entities as the local data model.
Next, we create (auto generate) the sync actions for the 3 entities mentioned above:
Those actions look like this:
Now to implement this in the OfflineDataSync. I believe the following needs to be done:
*The OfflineDataSync client action is executed by running the 'TriggerOfflineDataSync' in the relevant overview in the mobile application. (pull-to-refresh). ProductOverview page triggers the SyncUnit 'AllEntities'. While the SalesPersonOverview triggers SyncUnit 'SalesPersons'.
Now I've got the following questions regarding the implementation above:
Greetings,
Jens.