NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jtbogle@gmail.com

Pages: [1]
1
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

2
I am looking for an example app with the Single Record Settings Table created and in use for syncing with an API Sync Server.

Nettalk documentation reference below:
The application needs to be able to do the following;
Add a single record to the table if it does not already exist.
Prime the GUID field in the new record to a unique value.
Open a form to allow the user to edit the fields in this record (although the GUID of the record is not known at the time when the program is generated.)
Fortunately there is template support for a single record table, and this generates the necessary JavaScript to add the first record for you. The settings for this is on the Global Extensions, the "second" NetTalk global extension (Activate NetTalk Web Server), on the Apps / Settings Table tab. Enter the settings table here, as well as identify some common fields that might be in your table.

Pages: [1]