Synchronization.ResetOfflineDatabase()
It returns the local database content of the offline App to its initial state. That means:
- restoring the preloaded database if it exists, or
- executing a Create Database in order to empty database tables.
This behavior is the same that happens when the Synchronization.Receive method returns the message Metadata error code received. Code: 2. In this case the database is automatically restored and a new Receive operation is performed.
Note: The method can only be used inside a Client-side Event
As from GeneXus X Evolution 3 Upgrade 7