Synchronization API

The synchronization API makes it easier to call the generated synchronization programs for Offline applications in order to make the synchronization between the device and the web server whenever the developer wants to.

Methods

ServerStatus Determines the server status.
Receive Receives in the device all the changes made in the server.
Send Sends the pending modifications to the application server in order to submit the changes.
ResetOfflineDatabase1

It returns the local database (offline) content to its initial state. That means:

  • restoring the preloaded database if it exists, or
  • executing a Create Database to empty database tables.

Example

Event ‘Do Receive’
    Synchronization.Receive()
EndEvent

Availability

As from GeneXus X Evolution 3

ResetOfflineDatabase method is available as from GeneXus X Evolution 3 upgrade 7.

See also