Declare application SQL tables
The DB Sync client app must declare (register) local tables for synchronization. Hardcoding the table list is recommended for offline scenarios.
The DB Sync client application code must declare the local tables used in the synchronization
process. Fill a t_tabinfo array, and pass it to the
dbsync_app.register_local_tables()
function. If the app is on-line, it is also
possible to query tables associated to the user with the
dbsync_app.get_app_tables()
function. However, this function cannot be used if the
app is off-line and therefore it's better to hardcode the list of tables used by the
app: DEFINE tabinfo dbsync_core.t_tabinfo
LET tabinfo[1].table_name = "customer"
LET tabinfo[2].table_name = "order"
LET tabinfo[3].table_name = "cclines"
LET s = dbsync_app.register_local_tables(tabinfo)
IF s<0 THEN ... END IF