11
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
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
12
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
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
13
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
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
14
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
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
15
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
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
16
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
Got it working. Pretty slick.
THanks,
Ron
17
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
18
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
Is there a link library that goes with QRCode.dll?
Thanks,
Ron
19
Web Server - Ask For Help / Re: NetRefresh
« Last post by rjolda on November 01, 2025, 12:31:16 PM »HI Jane,
I added the line to SetTableValue to my table and MAGICALLY - it worked!!!
Better than having polling every 2 seconds!
Thanks,
Ron
I added the line to SetTableValue to my table and MAGICALLY - it worked!!!
Better than having polling every 2 seconds!
Thanks,
Ron
20
Web Server - Ask For Help / Re: NetRefresh
« Last post by rjolda on October 31, 2025, 01:09:01 PM »Hi Jane,
Thanks for that. I saw that but the templates seem to suggest that they will write that code to trigger refresh when you identify the File for Refresh. I will give that manual entry a try.
Ron
Thanks for that. I saw that but the templates seem to suggest that they will write that code to trigger refresh when you identify the File for Refresh. I will give that manual entry a try.
Ron
Recent Posts