Synchronization.ServerStatus method

Official Content
This documentation is valid for:


&ServerStatus = Synchronization.ServerStatus()


&ServerStatus is a Numeric variable.


This method determines if there were any changes in the server side since last synchronization, which allows the developer to know whether is convenient or not to call the Synchronization.Receive method.

This process is executed in the server side, which means it might take some time to be finished. In addition, this process requires the server to calculate the hashes of all involved tables in order to determine if changes has been made since last synchornization. Please read the Advanced Concepts of Offline Applications architecture document for more information.

Type returned

Returns one of the following values:

Value Meaning
0 There is no pending data to be received from the server side, which means both systems, the device and the server, are synchronized.
1 There has been changes in the server side since last synchronization. Note that if no data reception process has been done yet, this is the returned value.


An example of calling the ServerStatus method when pressing a button and asking for confirmation to receive data:

Event "MyAction"
        &ServerStatus = Synchronization.ServerStatus()
        If &ServerStatus = 1
            &HasConfirmed = Interop.Confirm("Server has changed since last synchronization, synchronize?")
            If &HasConfirmed

Tip: Server status is checked automatically before synchronization, so It's not necessary to check again in your code. However Synchronization.ServerStatus could be useful to ask for user confirmation or other scenarios


Objects Smart Devices objects
Platforms Android platform, Apple Smart Devices (iOS)


As from GeneXus X Evolution 3

See also