NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: jking on January 07, 2019, 12:59:09 PM
-
I have taken a small coin collector web app and tried converting it to a disconnected/pwa app. I get a browse but when editing an entry, the form is blank...no fields show at all. In addition, the time stamp fields are not getting updated. No server or deleted times are entered.
I took just my dictionary file and moved this to the C11/NT11.04 environment, so this is all newly generated code. I'm doing all this on the development machine, thus everything is local (http://127.0.0.1:88). I have the docs and looked at the November webinars. Still I'm struggling. Any thoughts?
Thanks,
Jeff King
-
More info....
I see that my browse is blank when first opened. So I added a locator field to "filter" the list. The locator does not show if I have checked "all browses should be file loaded". See image fileloaded.png. If I uncheck this I get a browse but I can't get it to list ant data. See browse.png.
If I click on Insert, I get a form as seen in form.png. Entering data takes me back to the browse as seen in data.png. If i reopen the app, again no data shows in the browse.
I have also attached images of how I have the app and dct set up. Things just don't seem to be coming together.
Thanks,
Jeff
-
It might be helpful if you email the app, so I can take a look at what you have done.
cheers
Bruce
-
Bruce,
For others following this thread, I found two mistakes I made that helped resolve some of my issues.
First, the external name for the ServerTimeStamp should be "sts". I had it as "tst".
Second, the options tab for each of the fields TimeStamp, ServerTimeStamp and DeletedTimeStamp should have TimeStamp = 1, ServerTimeStamp = 1 and DeletedTimeStamp = 1. I had all three set to TimeStamp = 1.
Once these were corrected, the app began to behave much better.
The remaining problem is that when calling the update form by clicking the "change" button, it is completely blank. Looking at the Chrome Dev Tools console, I see a message: "populating form but guid not found in local database". It seems the GUID that is in the actual tps file on the server is not in the local store of the device. I'm searching for an answer to this, perhaps it needs to be primed when doing an insert?
There is also a "page not found" message referring to syncthisdevice. My sync procedure is called synccoincollection and it apparently is called properly. Anyone know where this is coming from? See attached image.
-
Hi Jeff,
there should be a sync procedure in the web app for each table in the dict.
So;
>> There is also a "page not found" message referring to syncthisdevice.
suggests there is no syncThisDevice procedure
>> My sync procedure is called synccoincollection
That will sync the one table (CoinCollection presumably) but not the other
tables.
cheers
Bruce
-
Bruce,
Yes, you are correct. I'm not sure why I did not include the ThisDevice file but I have that sorted out now. I do have two other issues I emailed you about. Once I get those sorted I think I'll be good.
Thanks,
Jeff