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 / Media how to display PDF in a BLOB in a Media Object
« on: Today at 10:42:50 AM »
Hi,
I have a PDF file stored in a blob. Want to display it in a media object. I tried st.FromBlob('myblob') to load it into a string theory object and then FOr URL of Media Object: st.GetValue().
Did not work.
Better way to do it correctly?
THanks,
Ron
I have a PDF file stored in a blob. Want to display it in a media object. I tried st.FromBlob('myblob') to load it into a string theory object and then FOr URL of Media Object: st.GetValue().
Did not work.
Better way to do it correctly?
THanks,
Ron
2
Web Server - Ask For Help / Re: How to Hide and UnHide a Radio Option
« on: September 15, 2026, 09:16:41 AM »
Hi,
I have a radio on a MemForm. I have 7 options:
Text: p_web.GSV('autoInfo1') through .... p_web.GSV('autoInfo7')
For each one I set the Include Conditon: p_web.GSV('autoInfo1')<> '' through .... p_web.GSV('autoInfo7')<> ''
So, I read my data and fill in each p.web.SSV('autoInfo1', mydata) for each one that I need.
It is not a matter of hiding or unhiding - it is a matter of does the data exist - if yes, then the variable has a value. If not, the variable has no value and thus is not included.
HTH,
Ron
I have a radio on a MemForm. I have 7 options:
Text: p_web.GSV('autoInfo1') through .... p_web.GSV('autoInfo7')
For each one I set the Include Conditon: p_web.GSV('autoInfo1')<> '' through .... p_web.GSV('autoInfo7')<> ''
So, I read my data and fill in each p.web.SSV('autoInfo1', mydata) for each one that I need.
It is not a matter of hiding or unhiding - it is a matter of does the data exist - if yes, then the variable has a value. If not, the variable has no value and thus is not included.
HTH,
Ron
3
Web Server - Ask For Help / Re: JS to update session variables or page fields?
« on: September 15, 2026, 08:01:26 AM »
Good info. Thank you.
Ron
Ron
4
Web Server - Ask For Help / Re: JS to update session variables or page fields?
« on: September 12, 2026, 04:43:07 AM »
Hi Johan,
I am a JS newbie. I would love to see how you use JS to move data from returned fields onto the NT page.
I am querying NTSA API and I get back a string with the vehicle information which I parse out. I assign the returned data to the respective variables:
e.g. p_web.SSV('AutoYear',returnedYear), etc.
then I do a call to the validate: DO ValidateValue::CAT:VINnumber
all of the fields get refreshed.
Ron
I am a JS newbie. I would love to see how you use JS to move data from returned fields onto the NT page.
I am querying NTSA API and I get back a string with the vehicle information which I parse out. I assign the returned data to the respective variables:
e.g. p_web.SSV('AutoYear',returnedYear), etc.
then I do a call to the validate: DO ValidateValue::CAT:VINnumber
all of the fields get refreshed.
Ron
5
Web Server - Ask For Help / Re: Webhooks in Nettalk?
« on: September 07, 2026, 03:24:40 PM »
Hi,
HMAC is a method in Capesoft Cryptonite. Using it regularly in my NT Web App. I am using it to validate the Text that I place in a QR code when the QR code is created. When the user displays the QR code to the reader, we calculate the HMAC of the string read from the QR code to make certain it has not been tampered with. wouldn't be without it!
Ron
HMAC is a method in Capesoft Cryptonite. Using it regularly in my NT Web App. I am using it to validate the Text that I place in a QR code when the QR code is created. When the user displays the QR code to the reader, we calculate the HMAC of the string read from the QR code to make certain it has not been tampered with. wouldn't be without it!
Ron
6
Web Server - Ask For Help / Re: DNSimple DNS method for Lets encrypt fails.
« on: August 26, 2026, 02:42:23 AM »
Hi,
I am using dnssimple.
NT does have a DNS app which connects to DNSsimple account and can edit it.
Ron
I am using dnssimple.
NT does have a DNS app which connects to DNSsimple account and can edit it.
Ron
7
Web Server - Ask For Help / Re: In which Procedure and Embed can I put code that will only Run Once
« on: August 20, 2026, 12:49:31 PM »
Johan,
BTW, the procedures are STATELESS - that means that they do not stay open until closed. The NT code keeps cycling through the procedure and keeps track of the stage it was in when NT engine last went though it. So, the code keeps cycling through the form until the user closes it with some action. SO, watch the stage in a trace as your app runs and you will see it cycling through stages. There is even a check box on forms to write the stage to the trace.
Ron
BTW, the procedures are STATELESS - that means that they do not stay open until closed. The NT code keeps cycling through the procedure and keeps track of the stage it was in when NT engine last went though it. So, the code keeps cycling through the form until the user closes it with some action. SO, watch the stage in a trace as your app runs and you will see it cycling through stages. There is even a check box on forms to write the stage to the trace.
Ron
8
Web Server - Ask For Help / Re: In which Procedure and Embed can I put code that will only Run Once
« on: August 20, 2026, 12:45:46 PM »
Hi Johan,
Again, I ask the same question that Jane asked. What are you trying to do?
I am doing some file upload and manipulation and then save. The code runs several times but I only wanted it to run ONCE. So, I looked at the stage number for the stuff I wanted to do and found that it would run only ONCE if I limited it to a certain stage - there are equates for the stage numbers in a form. So, looking at the stage number when your code fires might help you limit it to only a certain stage.
Ron
Again, I ask the same question that Jane asked. What are you trying to do?
I am doing some file upload and manipulation and then save. The code runs several times but I only wanted it to run ONCE. So, I looked at the stage number for the stuff I wanted to do and found that it would run only ONCE if I limited it to a certain stage - there are equates for the stage numbers in a form. So, looking at the stage number when your code fires might help you limit it to only a certain stage.
Ron
9
Web Server - Ask For Help / Re: NT CLient for updating DDNS for DNSSIMPLE
« on: August 16, 2026, 03:11:24 PM »
HI Bruce,
This is new to me as I rely on Net Talk products to do the work for me! I did not know that I could run curl from command line. That is a great way to test the login authorization. Will give it a go. Thanks for the info.
Ron
This is new to me as I rely on Net Talk products to do the work for me! I did not know that I could run curl from command line. That is a great way to test the login authorization. Will give it a go. Thanks for the info.
Ron
10
Web Server - Ask For Help / Re: NT CLient for updating DDNS for DNSSIMPLE
« on: August 14, 2026, 07:58:20 AM »
HI Jane,
I did re-look at DNS stuff. Indeed, it is the FULL API for DNSSIMPLE. However, DNS Simple has their own lightweight Dynamic DNS (DDNS) implementation, available at ddns.horse.
They provide a Curl example: Here is an example using curl: curl -i "https://ddns.horse/nic/update?hostname=example.com&myip=1.2.3.4&myipv6=2001:db8::8a2e:370:7334" -u "accountid:token"
On capesoft I got the conversion
net.Start()
net.Authorization = net.CreateAuthorizationString ('accountid','token', Net:WebBasicAuthentication,true)
net.Get('https://ddns.horse/nic/update?hostname=example.com&myip=1.2.3.4&myipv6=2001:db8::8a2e:370:7334')
I am using my Account ID for the authorization string "accountid" and my OAuthToken for the 'token' part of it.
However, I am getting authorization failure.
So, I can't get past the authorization with my credentials. I did double check my credentials and they are correct.
That is where I am at,
Ron
I did re-look at DNS stuff. Indeed, it is the FULL API for DNSSIMPLE. However, DNS Simple has their own lightweight Dynamic DNS (DDNS) implementation, available at ddns.horse.
They provide a Curl example: Here is an example using curl: curl -i "https://ddns.horse/nic/update?hostname=example.com&myip=1.2.3.4&myipv6=2001:db8::8a2e:370:7334" -u "accountid:token"
On capesoft I got the conversion
net.Start()
net.Authorization = net.CreateAuthorizationString ('accountid','token', Net:WebBasicAuthentication,true)
net.Get('https://ddns.horse/nic/update?hostname=example.com&myip=1.2.3.4&myipv6=2001:db8::8a2e:370:7334')
I am using my Account ID for the authorization string "accountid" and my OAuthToken for the 'token' part of it.
However, I am getting authorization failure.
So, I can't get past the authorization with my credentials. I did double check my credentials and they are correct.
That is where I am at,
Ron
11
Web Server - Ask For Help / NT CLient for updating DDNS for DNSSIMPLE
« on: August 13, 2026, 11:13:12 AM »
Hi,
I have a DNSSIMPLE account for my DNS resolution. My ISP gives me a Dynamic IP address. DNSSIMPLE has an API to update DNS records when your HOST IP address changes.
Anyone with NetWebClient code to update DNS record when the host IP address changes.
I have set up an OAUTH token on my DNSSIMPLE account.
They have an API but I have not got it working.
Anyone have working code that they can share?
Thanks,
Ron
I have a DNSSIMPLE account for my DNS resolution. My ISP gives me a Dynamic IP address. DNSSIMPLE has an API to update DNS records when your HOST IP address changes.
Anyone with NetWebClient code to update DNS record when the host IP address changes.
I have set up an OAUTH token on my DNSSIMPLE account.
They have an API but I have not got it working.
Anyone have working code that they can share?
Thanks,
Ron
12
Web Server - Ask For Help / Re: How to translate C# API call to NT
« on: August 13, 2026, 07:53:52 AM »
HI,
THe code above was AI Generated and did NOT WORK!
However, I massaged the code to get this to work:
URL =('https://vpic.nhtsa.dot.gov/api/vehicles/DecodeVIN/' & VINData & '?format=xml')
net.contentType = 'application/x-www-form-urlencoded'
net.SetAccept('json')
net.Get(url)
And, As Bruce said, the return is in the .PageReceived where I trap errors and then parse the return message:
log = clip(log) & '<13,10>------<13,10>' & self.ThisPage.GetValue()
st4.SetValue(log) ! put the log into st object
do Extract_it ( routine to extract out the fields.)
Ron
THe code above was AI Generated and did NOT WORK!
However, I massaged the code to get this to work:
URL =('https://vpic.nhtsa.dot.gov/api/vehicles/DecodeVIN/' & VINData & '?format=xml')
net.contentType = 'application/x-www-form-urlencoded'
net.SetAccept('json')
net.Get(url)
And, As Bruce said, the return is in the .PageReceived where I trap errors and then parse the return message:
log = clip(log) & '<13,10>------<13,10>' & self.ThisPage.GetValue()
st4.SetValue(log) ! put the log into st object
do Extract_it ( routine to extract out the fields.)
Ron
13
Web Server - Ask For Help / Re: Syslog 'Server'
« on: August 12, 2026, 07:39:10 AM »
Hi Paul,
Not sure what you are really trying to do. Do you want to take log entries from your NT server and filter them and send an SMS text to your phone with the ones you want?
Ron
Not sure what you are really trying to do. Do you want to take log entries from your NT server and filter them and send an SMS text to your phone with the ones you want?
Ron
14
Web Server - Ask For Help / Re: form refreshes and shows from the top
« on: August 12, 2026, 07:36:53 AM »
Ooooh, that hurts. If you don't have one procedure per module, then reset your app with one procedure per module. If that doesn't help, then maybe you need to re-visit your very large table?
Ron
Ron
15
Web Server - Ask For Help / Re: Update field/variable on lose focus?
« on: August 11, 2026, 10:53:10 AM »
Hi Johan,
I did separate top menu items for Reset Password and for Create New User Account. They do not have to be logged into the app to use these. For password resets, they just enter their E mail address and press the Send Button - My code checks the e-mail and if it is a registered E mail I send them a link for Password reset. That is a separate form from the login page - got too messy trying to do logins and password resets on same memform. I allow new users to fill in a form and they need to enter their mobile phone number and their email ( their e mail address is their login). I then send them a text with pin code and the link to use pin code to sign in and get new password.
I am not sure that you can trap the "Save" button on a memform.
Ron
I did separate top menu items for Reset Password and for Create New User Account. They do not have to be logged into the app to use these. For password resets, they just enter their E mail address and press the Send Button - My code checks the e-mail and if it is a registered E mail I send them a link for Password reset. That is a separate form from the login page - got too messy trying to do logins and password resets on same memform. I allow new users to fill in a form and they need to enter their mobile phone number and their email ( their e mail address is their login). I then send them a text with pin code and the link to use pin code to sign in and get new password.
I am not sure that you can trap the "Save" button on a memform.
Ron