Automatic Offline Data Synchronization

This documentation is valid for:

By setting the Data Receive Criteria property to 'On Application Launch' or 'After Elapsed Time' GeneXus is going to be in charge of calling the initialization and update processes of the Offline tables of the application.

This is the first load of the local database with the records of the server's database. Initialization happens as follows:

When the application is installed on the device, the database is created (this is independant of the synchronization criteria)

After the database is created the initialization process is started.
This process brings the required data from the server and inserts it on the local database. Records can be filtered on the Conditions tab of the Offline Database Object.

After all the data is synchronzed, a set of hashes is also stored on the device. This hashes will make it possible to determinate if a table, in the future, has changed or not.

After this process is done, the application is ready to be used and can start reading, inserting and updating this local database via GeneXus Objects as usual.