NetTalk Central

Show Posts

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.


Messages - rjolda

Pages: [1] 2 3 ... 31
1
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

2
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

3
Hi,
I am using dnssimple.
NT does have a DNS app which connects to DNSsimple account and can edit it.
Ron

4
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

5
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

6
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

7
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

8
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

9
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

10
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

11
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

12
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

13
Web Server - Ask For Help / Re: Update field/variable on lose focus?
« on: August 10, 2026, 10:33:27 AM »
HI Johann,
I have seen the same issue.  In those cases I put a button on the form that says something like 'Press to Validate your entry'.  That way, they are told to do something. SO, if they complain that "they put in a value and it didn't work" then you can ask them if they pressed the "Validate button" - and it becomes your chance to educate them!
I am not sure if there is a $Script command that you can trigger before the form is closed but then it may not have the value they entered because they did not acknowledge it with a Tab or Enter.
Ron

14
Hi,
After lots of testing, I figured out that I really don't want the customer to INSERT records ( they are inserted in another procedure - so they only need to VIEW/Update the record.  So, just disabling the INSERT button in the Child Form solves my problem. 
Ron

15
Web Server - Ask For Help / Re: form refreshes and shows from the top
« on: August 09, 2026, 03:13:09 PM »
HI Mike,
Having difficulty figuring out exactly what you are doing?  Do you have multiple embedded Memory Forms?  Why don't you have one form with multiple tabs to update the file? 
Ron

Pages: [1] 2 3 ... 31