NetTalk Central

Recent Posts

Pages: 1 ... 7 8 [9] 10
81
Web Server - Ask For Help / Re: PageFooter Session Manager issue
« Last post by Alberto on June 14, 2024, 04:06:05 AM »
THis, Jane, is a grate idea! thanks
82
Web Server - Ask For Help / Re: Desktop app or Service
« Last post by rupertvz on June 14, 2024, 01:25:37 AM »
Thank you Jane, Alberto ;-)
83
Web Server - Ask For Help / Re: PageFooter Session Manager issue
« Last post by Jane on June 13, 2024, 08:18:39 PM »
I haven't grokked the nt-session timer countDown method.  But it appears (?) to be subtracting from a counter variable: this.state.timeLeft -= 1

This guy suggests a different approach using a counter based on epoch time: https://abhi9bakshi.medium.com/why-javascript-timer-is-unreliable-and-how-can-you-fix-it-9ff5e6d34ee0
84
Web Server - Ask For Help / Re: PageFooter Session Manager issue
« Last post by Bruce on June 13, 2024, 06:43:08 AM »
noted.
85
Web Server - Ask For Help / Re: Passing parameters on a Button
« Last post by Bruce on June 13, 2024, 06:41:10 AM »
'GID=' & FIL1:GUID & '&FROMTABLE=Table1'
86
Web Server - Ask For Help / Re: Desktop app or Service
« Last post by Jane on June 12, 2024, 11:06:13 AM »
If you're using SelfService, query the AmService property.

https://www.capesoft.com/docs/SelfService/selfservice.htm#ObjectProperties
87
Web Server - Ask For Help / Re: PageFooter Session Manager issue
« Last post by Jane on June 12, 2024, 11:04:11 AM »
I'm also interested in a workaround for this.
88
Web Server - Ask For Help / Re: Desktop app or Service
« Last post by Alberto on June 12, 2024, 09:04:20 AM »
May be...

How to Know If the Exe is Running as a Service
The easiest way to know if your app is running as a service is to test System{'ss:AmService'}. This is set to true when the program is in service mode. For example;

If System{'ss:AmService'} = true
  ! in service mode
End

This approach only works if you are using Clarion 10.11975 or later.
The advantage of this approach is that the code is system-global, meaning it'll work in pre-compiled DLL's, classes with no access to global data and so on.

If you are using an older build of Clarion then we recommend either (a) upgrading, or following one of the steps described in Destroy Controls above.
89
Web Server - Ask For Help / Re: Passing parameters on a Button
« Last post by Alberto on June 12, 2024, 09:01:58 AM »
May be you have to use:

'GID=' & FIL1:GUID & '&FROMTABLE =' & 'Table1'
90
Web Server - Ask For Help / Desktop app or Service
« Last post by rupertvz on June 12, 2024, 08:10:54 AM »
Hi Guys,

Is there an easy way to determine at runtime whether a NT app is running as a desktop instance, or a Windows Service?
Pages: 1 ... 7 8 [9] 10