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.
1
Web Server - Ask For Help / Re: NT CLient for updating DDNS for DNSSIMPLE
« on: August 16, 2026, 08:09:11 PM »
Ron,
After you get it working in CURL, you can also do some testing with the web client that's in the NetDemo app in the NetTalk examples.
It's useful because you can see what's sent and received and figure out how to make things work.
After you get it working in CURL, you can also do some testing with the web client that's in the NetDemo app in the NetTalk examples.
It's useful because you can see what's sent and received and figure out how to make things work.
2
Web Server - Ask For Help / Re: NT CLient for updating DDNS for DNSSIMPLE
« on: August 13, 2026, 05:13:16 PM »
No, I haven't.
Have you tried the examples in the nettalk\NetDns folder?
Have you tried the examples in the nettalk\NetDns folder?
3
Web Server - Ask For Help / Re: Global MEMORY file
« on: August 05, 2026, 04:36:17 PM »
Johan,
I've never used the multi-host for a real app; just played with the example.
I would not start from the webhandler.
Many of my web servers actually have a source procedure as the first procedure in the app tree.
This is example code from one that looks at the commandline, does some initialization, starts a timer window, and then runs the web server.
I've never used the multi-host for a real app; just played with the example.
I would not start from the webhandler.
Many of my web servers actually have a source procedure as the first procedure in the app tree.
This is example code from one that looks at the commandline, does some initialization, starts a timer window, and then runs the web server.
Code: [Select]
GlobalInit()
IF COMMAND('/setup')
SetupWindow()
RETURN
END ! IF
if GLO:LogMaxRecords = 0
GLO:LogMaxRecords = 500
end ! if
GLO:RunningAsService = gSelfService.AmService
GLO:SuppressUI = GLO:RunningAsService
GLO:DataServiceThread = start(timerwindow,25000)
if GLO:RunningAsService
AddErrorLog('ADIS started as service.')
ELSE
AddErrorLog('ADIS started manually.')
end ! i
GLO:ServerStartDate = today()
GLO:ServerStartTime = clock()
WebServer()
4
Web Server - Ask For Help / Re: Global MEMORY file
« on: August 04, 2026, 11:37:11 AM »
For something small like that, you might also consider Capesoft MaxQueue.
As for loading the queue (or file), is the data pre-staged (in which case the load would be almost instantaneous) or does it have to be gathered?
I have some webservers that need the underlying data refreshed periodically. Perhaps I overcomplicate things, but my flow is:
1. When the app starts, START a window that has a timer. Capture the thread returned by the START command into a global variable (I use GLO:DataServiceThread).
2. I declare an equate
6. You might want to wrap the actual reloading of your data inside a critical section to restrict access while the refresh is taking place. Don't know whether that is needed with MaxQueue.
As for loading the queue (or file), is the data pre-staged (in which case the load would be almost instantaneous) or does it have to be gathered?
I have some webservers that need the underlying data refreshed periodically. Perhaps I overcomplicate things, but my flow is:
1. When the app starts, START a window that has a timer. Capture the thread returned by the START command into a global variable (I use GLO:DataServiceThread).
2. I declare an equate
Code: [Select]
eqMyClose equate(event:user + 4) 3. In the window that has a timer, in ThisWindow.TakeWindowEvent before the parentCode: [Select]
of eqMyClose
! any other cleanup code here
post(event:closewindow) 4. In the webserver procedure, at the beginning of thisWindow.KillCode: [Select]
if GLO:DataServiceThread <> 0
post(eqMyClose,,GLO:DataServiceThread)
end ! if5. Timer in window triggers refresh of data.6. You might want to wrap the actual reloading of your data inside a critical section to restrict access while the refresh is taking place. Don't know whether that is needed with MaxQueue.
6
Web Server - Ask For Help / Re: Warning the user of session timeout
« on: August 02, 2026, 12:59:23 PM »Quote
or have implemented this
Are you using the session manager template settings?
https://www.capesoft.com/docs/NetTalk14/NetTalkWebFunctionality.htm#NetWebSource
If so, you might also add the logout logic I describe in this thread:
https://www.nettalkcentral.com/forum/index.php?topic=9482.msg38919#msg38919
7
Web Server - Ask For Help / Re: NetWebServiceMethod
« on: April 30, 2026, 09:17:53 PM »
Are you trying to send JSON to a web browser or to a client of some sort?
There's a NetTalk example WebServiceRequiresXFiles (77) that includes two apps - a client and a web server.
It's also often useful to use the netdemo example program as a web client to debug what you're doing.
There's a NetTalk example WebServiceRequiresXFiles (77) that includes two apps - a client and a web server.
It's also often useful to use the netdemo example program as a web client to debug what you're doing.
8
Web Server - Ask For Help / Re: Refresh Browse after Post Update
« on: April 16, 2026, 12:28:42 PM »
There's a way to refresh a browse from (almost) anywhere in your app whenever you want.
You need to set up all the pieces correctly. Then just do a p_web.SetTableValue whenever you want to refresh the browse (assuming you're in a procedure that has access to p_web).
https://www.capesoft.com/docs/NetTalk14/NetTalkWebBasic.htm#NetRefresh
You need to set up all the pieces correctly. Then just do a p_web.SetTableValue whenever you want to refresh the browse (assuming you're in a procedure that has access to p_web).
https://www.capesoft.com/docs/NetTalk14/NetTalkWebBasic.htm#NetRefresh
9
Web Server - Ask For Help / Re: Tooltip on droplist item?
« on: January 17, 2026, 07:22:47 PM »
Bruce added to the templates for 14.37.
Thank you!
Thank you!
10
Web Server - Ask For Help / Re: NetClient.Send error??
« on: January 12, 2026, 12:29:13 PM »You might look at the NetTalk webinars around that time as I would have asked for help there.
And according to John's handy AI summary, Ron's discussion began at 00:12:29 in Episode 87.00.
https://www.clarionlive.com/webinars/2766d293-b564-4e7d-aef2-7fb45915102d
11
Web Server - Ask For Help / Tooltip on droplist item?
« on: December 31, 2025, 01:42:40 PM »
Is there a way to add a tooltip to dropdown items from the template (without omitting/rewriting template code in the embeditor?)
p_web.CreateOption has a place for a tooltip parameter, but I'm not seeing how to specify that in the form template.
And I couldn't find a way to wrap the droplist choice in a <span>.
Am I missing something obvious? NT 14.36
p_web.CreateOption has a place for a tooltip parameter, but I'm not seeing how to specify that in the form template.
And I couldn't find a way to wrap the droplist choice in a <span>.
Am I missing something obvious? NT 14.36
Code: [Select]
packet.append(p_web.CreateOption('Excluded contact','EXCLUDED',choose(lower('EXCLUDED') = lower(p_web.getSessionValue('dischargeBrowseResolvedFilter'))),'',loc:extra,'Appointment not needed OR Appointment declined OR HMO/other PCP')&p_web.CRLF) !k12
Web Server - Ask For Help / Re: Change Page Title - browser tab description
« on: December 03, 2025, 05:11:58 PM »
I haven't done it.
But as an experiment, Johan, open the F12 developer tools and switch to the Console tab.
Type in
But as an experiment, Johan, open the F12 developer tools and switch to the Console tab.
Type in
Code: [Select]
document.title="Invoice 123";13
Web Server - Ask For Help / Re: Pass a Session Variable as a parameter?
« on: November 25, 2025, 03:27:08 PM »
I don't understand, Johan, but I'm glad you do 
If you pass p_web into a function, then within that function you can do the regular p_web.GSV('blah') or p_web.SSV('blah','blork')
As for the structure of the session data, you might look through netwebsessions.inc at the various queue types and netwebsessions.clw for how they're being accessed.

If you pass p_web into a function, then within that function you can do the regular p_web.GSV('blah') or p_web.SSV('blah','blork')
As for the structure of the session data, you might look through netwebsessions.inc at the various queue types and netwebsessions.clw for how they're being accessed.
14
Web Server - Ask For Help / Re: Pass a Session Variable as a parameter?
« on: November 25, 2025, 08:02:24 AM »
Pass the p_web object as one of your parameters.
Here's a prototype example from one of my procedures where p_web is the first of two parameters I'm passing.
Here's a prototype example from one of my procedures where p_web is the first of two parameters I'm passing.
Code: [Select]
(NetWebServerWorker p_web,LDAPParametersGroupType pParms)
15
Web Server - Ask For Help / Re: Anyone have passkeys implemented
« on: November 19, 2025, 02:29:15 PM »
Thanks, Sean.
I had rolled my own AD groups permissions for web apps before SecWin 7 was released and it works OK. I just took a quick look at SecWin 7's groups when it was released and couldn't see an easy way to make it work seamlessly for what I needed so stuck with what I already had.
Hope you're doing well.
Jane
I had rolled my own AD groups permissions for web apps before SecWin 7 was released and it works OK. I just took a quick look at SecWin 7's groups when it was released and couldn't see an easy way to make it work seamlessly for what I needed so stuck with what I already had.
Hope you're doing well.
Jane