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 / Gettinng Session Theme - get the default theme
« on: June 29, 2025, 03:48:33 AM »
Hi
NT14.21 C11 ABC
I have my site default theme set as 'shoestrap3' and it is saved in: s_web._SitesQueue.Defaults.DefaultTheme = set:Theme
How can I get this value so that I can display it on a page?
This does NOT WORK......message('theme is : ' & s_web._SitesQueue.Defaults.DefaultTheme )
Tried several variations but not successful.
So, How can I get the value of: s_web._SitesQueue.Defaults.DefaultTheme
Thanks,
Ron
NT14.21 C11 ABC
I have my site default theme set as 'shoestrap3' and it is saved in: s_web._SitesQueue.Defaults.DefaultTheme = set:Theme
How can I get this value so that I can display it on a page?
This does NOT WORK......message('theme is : ' & s_web._SitesQueue.Defaults.DefaultTheme )
Tried several variations but not successful.
So, How can I get the value of: s_web._SitesQueue.Defaults.DefaultTheme
Thanks,
Ron
2
Web Server - Ask For Help / sending SMS via GSM Modem
« on: June 09, 2025, 07:03:17 AM »
Hi,
NT 14.21, C11
Can Net Talk send SMS messages directly through SMS modem? This would be for multiple carriers in the United States.
I don't want to send via an Email address to specific carrier but to their cell phone number directly. I don't have a lot of text messages so I don't want to set up a Twilio account or TextGrid account.
THanks,
Ron
NT 14.21, C11
Can Net Talk send SMS messages directly through SMS modem? This would be for multiple carriers in the United States.
I don't want to send via an Email address to specific carrier but to their cell phone number directly. I don't have a lot of text messages so I don't want to set up a Twilio account or TextGrid account.
THanks,
Ron
3
Web Server - Ask For Help / Can CSS respond to a clarion variable value and change the elements color?
« on: May 29, 2025, 06:58:07 AM »
Hi
Using NT 14.21 and C11
Can CSS capture a value change - e.g. when the Total Amount goes form $10.00 TO -$5.00 ( minus value)?
If it can, can you give some code or hints?
If it can't it probably will take javascript?
Thanks,
Ron
Using NT 14.21 and C11
Can CSS capture a value change - e.g. when the Total Amount goes form $10.00 TO -$5.00 ( minus value)?
If it can, can you give some code or hints?
If it can't it probably will take javascript?
Thanks,
Ron
4
Web Server - Ask For Help / Hide Webcam after photo is taken
« on: May 21, 2025, 12:46:25 PM »
Hi all,
Using NT14.21 , Clarion11.
I have a form with a Display Field - DisplayPhoto which displays the photo when the picture is taken.
On the same screen I have a TakePhoto button and a Webcam field which uses the environment Camera to take a photo (AON:ThisPicture) and display it in the DisplayPhoto field.
My TakePhoto Button has the embed:
p_web.SSV('PhotoDone', 'YES') ! we use this to display buttons - 1= we have taken picture -display ?Crop Photo button
this button is set to Reset the valued of AON:ThisPicture ( which is the field equate that stores the picture)
My Webcam field (equate AON:ThisPicture) has the following hide statement: p_web.GSV('PhotoDone') ='YES'
What I am finding is that the photo is taken and displays, the webcam display is gone and then the screen flickers and the webcam is back on display as if the webcam is set to ALWAYS display no matter what the programmer (like me) is trying to do.
Anyone with insights on this?
THanks,
Ron
Using NT14.21 , Clarion11.
I have a form with a Display Field - DisplayPhoto which displays the photo when the picture is taken.
On the same screen I have a TakePhoto button and a Webcam field which uses the environment Camera to take a photo (AON:ThisPicture) and display it in the DisplayPhoto field.
My TakePhoto Button has the embed:
p_web.SSV('PhotoDone', 'YES') ! we use this to display buttons - 1= we have taken picture -display ?Crop Photo button
this button is set to Reset the valued of AON:ThisPicture ( which is the field equate that stores the picture)
My Webcam field (equate AON:ThisPicture) has the following hide statement: p_web.GSV('PhotoDone') ='YES'
What I am finding is that the photo is taken and displays, the webcam display is gone and then the screen flickers and the webcam is back on display as if the webcam is set to ALWAYS display no matter what the programmer (like me) is trying to do.
Anyone with insights on this?
THanks,
Ron
5
Web Server - Ask For Help / How to manipulate Camera PHOTO and display it
« on: May 12, 2025, 05:31:49 AM »
Hi All,
NT 14.21, C11
I am having the users take a photo of a document (e.g. drivers license) on a black background. Thanks to Charles Edmund and ImageEx, he gave me a routine to remove the background and crop the picture so that I have only the document. It is all code. When the user takes a photo, I want to be able to snag it either before display in the NT webcam picture or I could give them a button to "modify it" and display it in another NT webcam picture. I can save the camera image to disk and manipulate the saved file BUT, I want to grab the image in memory and manipulate it. The take photo and display it appear to be javascript functions in all.js.
I have not played with javascript so I don't have a clue as to how to go about doing this in Javascript in an elegant fashion. Basically, ImageEx can import the photo from a Handle of the Global Memory BLock holding the image or from a URL ( or a file on disk).
So, anyone have any ideas about how to snag this image in memory and send it to Clarion Source code and return it to image in memory for display in the NT webcam field?
The javascript code seems to be:
case 1: //Take Pic
$('#' + id).on('click',function(e){_this.takeSnapshot(e)});
break;
and
// Load canvas
$.fn.getCanvasImage = function(type) {
if (!this[0].toDataURL) {return null;}
if (type === undefined) {
type = 'image/png';
} else {
type = type
.replace(/^([a-z]+)$/gi, 'image/$1')
.replace(/jpg/gi, 'jpeg');
}
return this[0].toDataURL(type);
};
Anyone with good javascript skills who can shed some insight and maybe some code to manipulate the image?
Thanks,
Ron
NT 14.21, C11
I am having the users take a photo of a document (e.g. drivers license) on a black background. Thanks to Charles Edmund and ImageEx, he gave me a routine to remove the background and crop the picture so that I have only the document. It is all code. When the user takes a photo, I want to be able to snag it either before display in the NT webcam picture or I could give them a button to "modify it" and display it in another NT webcam picture. I can save the camera image to disk and manipulate the saved file BUT, I want to grab the image in memory and manipulate it. The take photo and display it appear to be javascript functions in all.js.
I have not played with javascript so I don't have a clue as to how to go about doing this in Javascript in an elegant fashion. Basically, ImageEx can import the photo from a Handle of the Global Memory BLock holding the image or from a URL ( or a file on disk).
So, anyone have any ideas about how to snag this image in memory and send it to Clarion Source code and return it to image in memory for display in the NT webcam field?
The javascript code seems to be:
case 1: //Take Pic
$('#' + id).on('click',function(e){_this.takeSnapshot(e)});
break;
and
// Load canvas
$.fn.getCanvasImage = function(type) {
if (!this[0].toDataURL) {return null;}
if (type === undefined) {
type = 'image/png';
} else {
type = type
.replace(/^([a-z]+)$/gi, 'image/$1')
.replace(/jpg/gi, 'jpeg');
}
return this[0].toDataURL(type);
};
Anyone with good javascript skills who can shed some insight and maybe some code to manipulate the image?
Thanks,
Ron
6
Web Server - Ask For Help / MObile device (Phone) @media screen and (max-width: 600px) FONT SIZE question
« on: May 07, 2025, 05:07:41 AM »
Hi
NT 14.21, C 11
I am running a NT app on browser and also in browser on mobile device ( Android - chrome).
I can change the font size on browsers EXCEPT FOR MOBILE DEVICES (Phone)
Using:
:root{
--font-family:"Open Sans","Segoe UI",Tahoma, Verdana, Arial, Helvetica, sans-serif;
--font-size:8pt;
}
I can change the font size for apps running on desktop - I can make the font very small. HOWEVER,
The font size does not get smaller on Mobile Device (phone). That is my issue, I want to make it smaller - so that the user can make it bigger if they want. BUt that is NOT happening.
I don't see any settings for font specific to @media screen and (max-width: 600px).
Indeed, if I put a specific font size in that section like this:
@media screen and (max-width: 600px) {
body{
font-size:8px;}
}
It does not make the font smaller. Seems like something else is setting font minimum size on mobile phone? Maybe mobile browser settings?
Any insights?
THanks,
Ron
NT 14.21, C 11
I am running a NT app on browser and also in browser on mobile device ( Android - chrome).
I can change the font size on browsers EXCEPT FOR MOBILE DEVICES (Phone)
Using:
:root{
--font-family:"Open Sans","Segoe UI",Tahoma, Verdana, Arial, Helvetica, sans-serif;
--font-size:8pt;
}
I can change the font size for apps running on desktop - I can make the font very small. HOWEVER,
The font size does not get smaller on Mobile Device (phone). That is my issue, I want to make it smaller - so that the user can make it bigger if they want. BUt that is NOT happening.
I don't see any settings for font specific to @media screen and (max-width: 600px).
Indeed, if I put a specific font size in that section like this:
@media screen and (max-width: 600px) {
body{
font-size:8px;}
}
It does not make the font smaller. Seems like something else is setting font minimum size on mobile phone? Maybe mobile browser settings?
Any insights?
THanks,
Ron
7
Web Server - Ask For Help / How to adjust font size NT Variable
« on: May 03, 2025, 02:45:13 AM »
Hi All,
NT 14.21 and C11
I am using base theme for my app. The base theme has the line: --font-size: 12pt;
base.css has this value for variable --font-size: 12pt; :
root {
--icon-size: 32px;
--icons-light: url("/icons/nt-icons-light.svg");
.....
--icons-error-scale: 1.75;
--icons-error-transform: scale(var(--icons-error-scale));
--font-family: "Open Sans","Segoe UI",Tahoma, Verdana, Arial, Helvetica, sans-serif;
--font-size: 12pt; <<<<<<<<<<================= If I change it here, it still does not affect the font - I change it to 8 pt but when I look in inspector, the value is still 12.
How can I change the overall font size for the entire app?
Am I in the right place?
I did gzipall after changing it to 8 pt but the inspector still says 12 pt.
Do I need to clear the cache?
TIA,
Ron
NT 14.21 and C11
I am using base theme for my app. The base theme has the line: --font-size: 12pt;
base.css has this value for variable --font-size: 12pt; :
root {
--icon-size: 32px;
--icons-light: url("/icons/nt-icons-light.svg");
.....
--icons-error-scale: 1.75;
--icons-error-transform: scale(var(--icons-error-scale));
--font-family: "Open Sans","Segoe UI",Tahoma, Verdana, Arial, Helvetica, sans-serif;
--font-size: 12pt; <<<<<<<<<<================= If I change it here, it still does not affect the font - I change it to 8 pt but when I look in inspector, the value is still 12.
How can I change the overall font size for the entire app?
Am I in the right place?
I did gzipall after changing it to 8 pt but the inspector still says 12 pt.
Do I need to clear the cache?
TIA,
Ron
8
Web Server - Ask For Help / Error code: SSL_ERROR_NO_CYPHER_OVERLAP
« on: March 12, 2025, 09:06:48 AM »
HI All,
Using NT 14.21 and Clarion 11.0.136
I have a valid SSL certificate by Go Daddy on my server.
All of a sudden my server is giving the following error: Error code: SSL_ERROR_NO_CYPHER_OVERLAP
I can RDP into my server and NT app is running and listening on port 447
I checked my firewall and app is set to go through firewall.
What might be going on?
Thanks,
Ron
Using NT 14.21 and Clarion 11.0.136
I have a valid SSL certificate by Go Daddy on my server.
All of a sudden my server is giving the following error: Error code: SSL_ERROR_NO_CYPHER_OVERLAP
I can RDP into my server and NT app is running and listening on port 447
I checked my firewall and app is set to go through firewall.
What might be going on?
Thanks,
Ron
9
Web Server - Ask For Help / Net Web client = error 73
« on: March 02, 2025, 02:01:25 PM »
Hi All
C11
NT 14.21
I am setting up a few refurbished PCs with Windows 10 Pro installed.
I keep running into an error 73 when I try to run my Web Client. Also get it with the NetTalk Demo app. I can connect to the site through a browser OK but all of the net talk stuff throws an error 73. I have installed the Visual Studio 2017 redistributable on the machines - but even with re-boot, I still keep getting the error.
Help!!
Thanks,
Ron
C11
NT 14.21
I am setting up a few refurbished PCs with Windows 10 Pro installed.
I keep running into an error 73 when I try to run my Web Client. Also get it with the NetTalk Demo app. I can connect to the site through a browser OK but all of the net talk stuff throws an error 73. I have installed the Visual Studio 2017 redistributable on the machines - but even with re-boot, I still keep getting the error.
Help!!
Thanks,
Ron
10
Web Server - Ask For Help / Strategies to refresh client browse
« on: February 28, 2025, 06:41:35 AM »
Hi All,
C11 NT 14.21
I have a browse which contains 1 to 4 records. I want to update it automatically maybe every 3 seconds. I don't really need to track anything momentarily so I don't need continuous communication with the server. I was thinking of a few strategies:
1. Put a hidden button on the browse to use the procedure timer to fire every 3 seconds to get a browse refresh.
2. Maybe I could send the Record time stamp from the client to the server using a button like #1 and if the time stamp ( for each record ) is different on the server, then refresh the data on the client browse row.
This seems a lot like the disconnected mobile app communication stuff - comparing time stamps, etc. So, is there a built in or easy method to refresh a single browse say every 3 seconds?
BTW, this is NOT a disconnected mobile app.
Thanks,
Ron
C11 NT 14.21
I have a browse which contains 1 to 4 records. I want to update it automatically maybe every 3 seconds. I don't really need to track anything momentarily so I don't need continuous communication with the server. I was thinking of a few strategies:
1. Put a hidden button on the browse to use the procedure timer to fire every 3 seconds to get a browse refresh.
2. Maybe I could send the Record time stamp from the client to the server using a button like #1 and if the time stamp ( for each record ) is different on the server, then refresh the data on the client browse row.
This seems a lot like the disconnected mobile app communication stuff - comparing time stamps, etc. So, is there a built in or easy method to refresh a single browse say every 3 seconds?
BTW, this is NOT a disconnected mobile app.
Thanks,
Ron
11
Web Server - Ask For Help / Change defaut Browse Layout Method on the fly?
« on: January 23, 2025, 12:08:16 PM »
Hi All
NT 14.16 C11
I am trying to give the user the option to display browses and forms in Table or in Flexbox. (As an old guy, I like to see things in tables and they make more sense) - so, I vote for Tables and if I am going to look at them on a mobile device, I will turn the display to horizontal to see the whole table width. The young kids consume their web data differently and like the flex box display.
So, I know that I can set the defaults in Web Server and it sets:
s_web._SitesQueue.Defaults.FormLayoutMethod = Net:Table [for Tables]
s_web._SitesQueue.Defaults.BrowseLayoutMethod = Net:Table
and
s_web._SitesQueue.Defaults.FormLayoutMethod = Net:Div [for flex grid]
s_web._SitesQueue.Defaults.BrowseLayoutMethod = Net:Div
s_web._SitesQueue.Defaults.ChildrenLayoutMethod = Net:Div
Each procedure calls a local layout method which is either from the SitesQueue:
loc:LayoutMethod = p_web.site.BrowseLayoutMethod
or is set at the procedure level something like:
loc:LayoutMethod =Table
I want to give each user the ability to use the Table or FlexGrid option to view their data - I anticipate giving them a default setting on login or run-time.
QUESTION: What is the easiest way to do this?
I may be able to replace the value of s_web._SitesQueue.Defaults.FormLayoutMethod = Net:Table with s_web._SitesQueue.Defaults.FormLayoutMethod = Net:Div and give the user a choice. Is that a good idea or will this change it for all users? I think it will change it for only the current session but I am not certain about that.
I could also trap the s_web._SitesQueue.Defaults.FormLayoutMethod = Net:Div at the procedure level and replace that with a Session Value that I have set. I would have to do this for each procedure.
Any Thoughts?
Thanks,
Ron
NT 14.16 C11
I am trying to give the user the option to display browses and forms in Table or in Flexbox. (As an old guy, I like to see things in tables and they make more sense) - so, I vote for Tables and if I am going to look at them on a mobile device, I will turn the display to horizontal to see the whole table width. The young kids consume their web data differently and like the flex box display.
So, I know that I can set the defaults in Web Server and it sets:
s_web._SitesQueue.Defaults.FormLayoutMethod = Net:Table [for Tables]
s_web._SitesQueue.Defaults.BrowseLayoutMethod = Net:Table
and
s_web._SitesQueue.Defaults.FormLayoutMethod = Net:Div [for flex grid]
s_web._SitesQueue.Defaults.BrowseLayoutMethod = Net:Div
s_web._SitesQueue.Defaults.ChildrenLayoutMethod = Net:Div
Each procedure calls a local layout method which is either from the SitesQueue:
loc:LayoutMethod = p_web.site.BrowseLayoutMethod
or is set at the procedure level something like:
loc:LayoutMethod =Table
I want to give each user the ability to use the Table or FlexGrid option to view their data - I anticipate giving them a default setting on login or run-time.
QUESTION: What is the easiest way to do this?
I may be able to replace the value of s_web._SitesQueue.Defaults.FormLayoutMethod = Net:Table with s_web._SitesQueue.Defaults.FormLayoutMethod = Net:Div and give the user a choice. Is that a good idea or will this change it for all users? I think it will change it for only the current session but I am not certain about that.
I could also trap the s_web._SitesQueue.Defaults.FormLayoutMethod = Net:Div at the procedure level and replace that with a Session Value that I have set. I would have to do this for each procedure.
Any Thoughts?
Thanks,
Ron
12
Web Server - Ask For Help / How to tell if Browse is a CHILD browse as opposed to being called directly
« on: December 09, 2024, 03:54:14 AM »
Hi,
C11 NT14.24
I am trying to hide some buttons if a Browse is called as a CHILD BROWSE in a MemoryForm.
Is there something that I can trap to indicate that it is a CHILD in a MemoryForm?
Ron
C11 NT14.24
I am trying to hide some buttons if a Browse is called as a CHILD BROWSE in a MemoryForm.
Is there something that I can trap to indicate that it is a CHILD in a MemoryForm?
Ron
13
Web Server - Ask For Help / Close BROWSE procedure
« on: November 29, 2024, 03:16:56 AM »
Hi,
C11.0.136 NT 14.21
Bruce offered this to close a FORM ===> p_web.ntform(loc:formName,'clickClose')
However, this appears to be for FORMS only. This appears in Browse code but appears to refer to the FORM for the browse
Question: How do I close a NT BROWSE procedure in code?
Thanks,
Ron
C11.0.136 NT 14.21
Bruce offered this to close a FORM ===> p_web.ntform(loc:formName,'clickClose')
However, this appears to be for FORMS only. This appears in Browse code but appears to refer to the FORM for the browse
Question: How do I close a NT BROWSE procedure in code?
Thanks,
Ron
14
Web Server - Ask For Help / h2 Header styling - trying to apply color
« on: November 20, 2024, 04:43:37 PM »
Hi,
I am trying to apply red color to the h2 header - I tried in-line styling which did not work. I want the header h2 line to always be red at the top of the page.
Anyone done this and willing to share?
Thanks,
Ron
I am trying to apply red color to the h2 header - I tried in-line styling which did not work. I want the header h2 line to always be red at the top of the page.
Anyone done this and willing to share?
Thanks,
Ron
15
Web Server - Ask For Help / Sec:Level - Multiple Ranges?
« on: September 02, 2024, 06:19:22 AM »
Hi,
I want to have multiple security level ranges - one for user - e.g. sec:level = 100 -199 and ANOTHER for Administrators Sec:Level 995-999.
If possible then How?
Thanks,
ROn
I want to have multiple security level ranges - one for user - e.g. sec:level = 100 -199 and ANOTHER for Administrators Sec:Level 995-999.
If possible then How?
Thanks,
ROn