I assumed that I could use use a global variable on the ServerSync window and template in the Desktop app.
Glo:ServerUrl = '
http://192.168.86.9' [2012 Server, the sync with the API appears to be working when I type directly into the template settings.
! Sends the Sync command to the server for a single table. Processing will resume when
! the reply is returned into PageReceived.
SyncOne ROUTINE
SyncInProgress = true
get(TableListQueue,CurrentTable)
TableListQueue.TableName_Icon = 2 ! syncing
put(TableListQueue)
display(?TableList)
if net.sync(
Glo:ServerUrl,TableListQueue.ViewPointer,TableListQueue.stsKey,TableListQueue.TableName,TableListQueue.TablePrefix,TableListQueue.TableSyncAPI,Options,TableListQueue.EverythingAfter, TableListQueue.SkipRecords,TableListQueue.TimeStampFieldName,TableListQueue.ServerTimeStampFieldName) = Net:Ok
TableListQueue.RecordsSent = net.RecordsSent
put(TableListQueue)
else
do SyncOneFail
end