dbsync_srvapp.central_set_sync_timestamp()

Registers the point in time of last central data refresh.

Syntax

Usage

The function registers the point in time of the last fetch of table row(s) into the application memory. Call this function before central_change_init(), to set the timestamp of the last data refresh in the current DB sync server-side app, to check for other user changes when calling the register_central_*() functions for a given row. If more recent changes have been done by another user, the registration function will return an error. The DB Sync server-side app code should then fetch fresh data, re-do the modifications, and re-initiate a central change process taking other user changes into account. If this function is not used, the registration functions ignore changes done by other users.