NetTalk Central

Recent Posts

Pages: 1 ... 4 5 [6] 7 8 ... 10
51
Web Server - Ask For Help / Re: session values in NetWebService not visible???
« Last post by rjolda on November 14, 2025, 03:21:28 AM »
hi Jane,
Last night I realized that the API client-NetWebService may have a different Session ID than the NT member procedure and the NetWebService. I had ruled out spelling and clearing the values and I know that they were written correctly in the WebService procedure.  The only thing is the SesionID.  May look at Set Host Value.....
Thanks,
Ron
52
Web Server - Ask For Help / Re: session values in NetWebService not visible???
« Last post by Jane on November 13, 2025, 07:28:57 PM »
Any time I've experienced such a thing, it's due to something that i screwed up.

Possibilities I can think of

1.  Spelling error (compiler will not catch those for session values)
2.  You're not in the same session that you think you're in
3.  Something has changed or cleared the session value between when you set it and when you're trying to read it.

Some well-placed debug statements will show you the SessionID when you're setting and when you're trying to read.

If the values you're checking are not part of a specific session, try using SetHostValue instead.


53
Web Server - Ask For Help / Net Refresh
« Last post by rjolda on November 13, 2025, 04:19:50 PM »
HI
NT 14.31  C11
I want to watch a table to see if it is refreshed.  This works automagically with the Templates for a Browse.
However, When my NetWebServiceMethod makes changes to a File.  e.g "SHOPS.TPS',  when I have other procedures watching the file, they update immediately.
Now, I want to watch the "SHOPS.TPS" with another procedure to see if the record has been updated.  It is NOT a BROWSe or Form.  It is HandCoded.  So, how can I check in code if the "SHOPS.TPS" file has been updated (by checking the Socket value somehow?) so that I know to read the File and grab the new values in my hand code procedure.
Looking at this as an alternative to p_WEB.GSV('Somevalue') set by the NetWebServiceMethod does not appear to the other procedures in my app.
Thanks,
Ron
54
Web Server - Ask For Help / session values in NetWebService not visible???
« Last post by rjolda on November 13, 2025, 02:20:25 PM »
Hi
NT 14.36  C11
I have a NetWebService and it has p_web as the parameter. 
I set some sessionValues.  p_Web.SSV('Someitem','one') in the NetWebService procedure.
I have another Net Talk procedure ( actually a Memform not on a table).  I am trying to read the values set by the NetWebService procedure.
e.g.  in my Memform procedure, I want to check these values periodically.  However my p_Web.GSV('Someitem') is ALWAYS blank - even after I see that my NetWebService procedure has set them using Trace statements.
YIKES - these should be working as they are part of the same session.....
Any ideas?
Thanks,
Ron
55
Web Server - Ask For Help / Re: Use DRAW to Create QR Code in NT app?
« Last post by rjolda on November 02, 2025, 05:41:29 PM »
Hi,
Found that this requires .Net Framework 3.5.  I have it on my machines but I am running my app on WIndows 2022 Server and you have to jump through hoops to put it on a Server.
Ron
56
Web Server - Ask For Help / Re: NetRefresh
« Last post by rjolda on November 02, 2025, 05:39:19 PM »
Hi Jane,
This is Refresh is awesome.  I had 3 procedures that I had working with 2 second polling - mostly because there were under the hood changes in some of the tables that I needed to keep up to date.  With a little work, I got rid of all the polling - my WebServer now just sits there with nothing to do.  It is just amazing.  Got all three procedures running with web sockets - and it it instant whereas with 2 second polling, I had to "wait" for the update. THanks for the critical insight you supplied.
ROn
57
Web Server - Ask For Help / Re: NetRefresh
« Last post by Jane on November 02, 2025, 12:14:04 PM »
Good job, Ron!

Every time I set up NetRefresh in an app I wind up forgetting some piece.  Once the pieces (global template, webserver template, specific browse template, websockets, etc.) are all working, it works really well as long as it knows about changes.

But when I run a process that changes stuff in an embed or a separate procedure, I need to do the setTableValue thing.

One other caveat.  Occasionally websockets doesn't work.  If I completely kill chrome.exe (not just close a tab) and reopen it, it works again.  That's rare and intermittent, but I have experienced it.

Jane
58
Web Server - Ask For Help / Re: Use DRAW to Create QR Code in NT app?
« Last post by rjolda on November 02, 2025, 10:56:30 AM »
Hi Osquibro,
Got it working.  Pretty slick.
THanks,
Ron
59
Web Server - Ask For Help / Re: Use DRAW to Create QR Code in NT app?
« Last post by osquiabro on November 02, 2025, 04:38:30 AM »
I lost the link but I'm attaching the dll and lib
60
Web Server - Ask For Help / Re: Use DRAW to Create QR Code in NT app?
« Last post by rjolda on November 01, 2025, 03:27:22 PM »
HI  Osquiabro,
Is there a link library that goes with QRCode.dll?
Thanks,
Ron
Pages: 1 ... 4 5 [6] 7 8 ... 10