NetTalk Central

Author Topic: Disconnected Desktop - Server Not Writing Records to TPS File  (Read 3920 times)

David

  • Full Member
  • ***
  • Posts: 127
    • View Profile
I have a Wizard created server, no changes, and a desktop client app.  The servers is writing to TPS files in the same folder as the server and the client is using a copy of the dct with the database driver set to memory.  When I add a record to the client and then click 'Start', on the ServerSync window, syncing runs and tells me 1 record was sent.  I can see in the log on the server that it is receiving information from the client.  However, looking at the TPS file on the server side the record wasn't added.

Is there some obvious things I can check and then maybe some tips on how to trace this down if the obvious doesn't work?

Below is the JSON the server log is showing.

{
   "token" : "",
   "table" : "objects",
   "action" : "sync",
   "everythingafter" : 0,
   "objects" : [
      {
         "guid" : "IC0CHF4CO6TRYWSD",
         "ts" : 1466425346200,
         "sts" : 0,
         "dts" : 0,
         "description" : "Obj1",
         "retired" : "",
         "retireddate" : 0,
         "dateadded" : 78702,
         "whoadded" : "",
         "searchstring" : ""
      },
      {
         "guid" : "FOTSTU5O6A6VY4JY",
         "ts" : 1466425871045,
         "sts" : 0,
         "dts" : 0,
         "description" : "Obj2",
         "retired" : "",
         "retireddate" : 78531,
         "dateadded" : 78702,
         "whoadded" : "me",
         "searchstring" : "me"
      }
   ]
}
« Last Edit: June 20, 2016, 04:35:08 AM by David »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Disconnected Desktop - Server Not Writing Records to TPS File
« Reply #1 on: June 20, 2016, 11:25:41 PM »
Hi David,

Can you email me the app & dict please. I'd like to try it here and see what it's doing.
It sounds like a bug of some kind, or perhaps a combination of settings, either way I'd like it to "just work".

cheers
Bruce


David

  • Full Member
  • ***
  • Posts: 127
    • View Profile
Re: Disconnected Desktop - Server Not Writing Records to TPS File
« Reply #2 on: June 21, 2016, 05:49:19 AM »
Thank you, I have emailed a zip of the apps and dictionaries. 

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Disconnected Desktop - Server Not Writing Records to TPS File
« Reply #3 on: June 22, 2016, 05:36:47 AM »
Thanks David,

small tweak for the server;
Go to the global extensions,
Activate NetTalk Web Server
Properties button
Apps tab
"Allow Sync in Server methods" needs to be ON.

I'll need to think about that from a Wizard point of view, so thanks for that.

cheers
Bruce

PS - Your approach of having a client app only with MEMORY tables is intriguing - but requiring 2 dicts seems like a bit of a downer. MultiProj would allow you to do this with a single Dict.