NetTalk Central

Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Web Server - Ask For Help / Look up button on a Login Form
« Last post by Richard I on September 25, 2026, 04:41:21 PM »
 I have a LoginForm with  a look up button on a local variable pointing to a data table
I am calling the LoginForm from the Index page "Login" button.

Despite working in earlier versions,It will  not open the Browse, although I can see it working briefly on button press.
I have examined and compared this version with older ones, and can see no template difference between them.
I have deleted and recompiled the CLW INC and OBJ files.
The subject  browse is being called from the login form

On  a different browse and form in the same app I can successfully, use the look up button.
Please help !
Thanks
Richard NT 14.38 C12 4000


 
12
Web Server - Ask For Help / Re: How to execute code once on Form Load?
« Last post by Jane on September 25, 2026, 12:43:53 PM »
Try checking if

Code: [Select]
p_stage=net:web:generate
net:web:generate is an equate for 0
13
Web Server - Ask For Help / Re: How to execute code once of Form Load?
« Last post by JohanR on September 25, 2026, 10:56:21 AM »
Hi Ron

Do you have multi TAB support set to true?


Below a snapshot of 2 different servers.
The top section is multi tab = true
The Bottom section is multi tab = false

Hoping to find a definitive way to test for form load/init and to execute code only.
Should work for both situations, multi tab or not.



thanks

Johan
14
Web Server - Ask For Help / Re: Webhooks in Nettalk?
« Last post by rjolda on September 25, 2026, 08:42:48 AM »
Hi Ton,
Thanks for explaining - makes a lot of sense and I see your need.
Ron
15
Web Server - Ask For Help / Re: How to execute code once of Form Load?
« Last post by rjolda on September 25, 2026, 08:41:04 AM »
HI Johan,
This does NOT sound right.  Your procedure is actually getting called TWICE.  I would look into that as it should be called ONCE but it will loop through and set different stages.  Sounds like you have parallel procedures and they are clashing.  Seems like you need to see why that is happening.  I do the same type of password reset that you are talking about.  It is a Memory Web Form.  It has an ID that it grabs for password reset.
  loc:resetGUID = p_web.GetValue('id')   ! if comes in with a GUID for PW RESET
     
        !    message('Reset id: '   & loc:resetGUID)
  if loc:resetGUID <> ''
        p_web.SSV('loc:resetGUID', loc:resetGUID)  ! keep until done.
        p_web.SSV('tab',1)
  end     

I use another Memory Form to have them enter their E mail for password reset.  I look up the e-mail and if it exists, I send them a reset link.  Probably much like you did.

I would be wanting to chase down why the procedure for password reset is being called twice.

Ron
16
I have a netwebbrowse that uses a memory form (due to reasons I'm stuck with) for inserts. After the new record is added the browse does not update to show the new record. How can I force it to update?
17
Web Server - Ask For Help / Re: How to execute code once of Form Load?
« Last post by JohanR on September 25, 2026, 03:20:41 AM »

Hi,

Switching on Multi TAB support creates this, have tested it with one of the examples.

Is this correct?
How to test or which embed to use on first page load to run code only once for page setup?

I don't want to go down the road of trying to check for TAB id etc...if this process is not correct and there is something I am missing.




thanks

Johan
18
Web Server - Ask For Help / Re: How to execute code once of Form Load?
« Last post by JohanR on September 25, 2026, 02:25:55 AM »
Hi Ron

Thanks for the info, I did have the stage as part of my debug log, but somehow I posted old screenshots.
The stage stays the same.

Something is triggering the form to be requested twice.
Between the devtools log and chatgpt, it's pointing at 2 requests
 

GET page
     ↓
generate sessionStorage.id
     ↓
GET /NewTabID
     ↓
set temporary x-TabID cookie
     ↓
location.reload()
     ↓
GET page again



One of the differences
SESSIONID=MrlXGbhPPdH9e4WrF5aRVl3dZUIvvp; x-TabID=4iunbrgg
and
Cookie: SESSIONID=MrlXGbhPPdH9e4WrF5aRVl3dZUIvvp

Still trying to understand why,

but the main goal is to somewhere in the init of the form have code that should only execute once.
So looking to check what to test and how to test.

In this case, a password reset link was emailed,
if the user clicks the link, the form is loaded twice and on the second instance it blocks as the link has been used already.

I can code around this somehow, but I still would like to understand why it executes twice,
as there could be other forms or situations with the same behavior.

As with these problems I never know if I caused an issue in my code and I end up chasing all sorts of avenues. :)

thanks

Johan


GET /SignInResetPassword?coded_rdis_isn=V2AN2KI6R0VHE92QX55O3R61002Z0Z446410TQZV00I2FZDR18 HTTP/1.1 Host: localhost:442 Connection: keep-alive Cache-Control: max-age=0 sec-ch-ua: "Google Chrome";v="153", "Not_A Brand";v="8", "Chromium";v="153" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "Windows" Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 Sec-Fetch-Site: same-origin Sec-Fetch-Mode: navigate Sec-Fetch-Dest: document Referer: https://localhost:442/SignInResetPassword?coded_rdis_isn=V2AN2KI6R0VHE92QX55O3R61002Z0Z446410TQZV00I2FZDR18 Accept-Encoding: gzip, deflate, br, zstd Accept-Language: en-US,en;q=0.9 Cookie: SESSIONID=MrlXGbhPPdH9e4WrF5aRVl3dZUIvvp; x-TabID=4iunbrgg


GET /SignInResetPassword?coded_rdis_isn=V2AN2KI6R0VHE92QX55O3R61002Z0Z446410TQZV00I2FZDR18 HTTP/1.1 Host: localhost:442 Connection: keep-alive Pragma: no-cache Cache-Control: no-cache sec-ch-ua: "Google Chrome";v="153", "Not_A Brand";v="8", "Chromium";v="153" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "Windows" Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 Sec-Fetch-Site: same-origin Sec-Fetch-Mode: navigate Sec-Fetch-User: ?1 Sec-Fetch-Dest: document Referer: https://localhost:442/SignInResetPassword?coded_rdis_isn=V2AN2KI6R0VHE92QX55O3R61002Z0Z446410TQZV00I2FZDR18 Accept-Encoding: gzip, deflate, br, zstd Accept-Language: en-US,en;q=0.9 Cookie: SESSIONID=MrlXGbhPPdH9e4WrF5aRVl3dZUIvvp



Johan
19
Web Server - Ask For Help / Re: Webhooks in Nettalk?
« Last post by AtoB on September 24, 2026, 11:15:04 PM »
Hi Ron,

why: I need to interface (API) with a new transportation system for one of my clients that plans and keeps track of trips/shipments/etc from various parties. This system (by default) sends out lots of data (to our already heavily used api-servers). Their payloads are quite large and most are not necessary for us. We decided a webhook system would be better. Now they just signal to our api-server: trip X has changed or shipment Y has updates and then we just register these events. They send really small payloads and I respond in a couple of milliseconds.

I've got a separate application that processes these webhook events and decides wether they are relevant for our needs (and when they are I fetch the data from their system and process it). Main advantage: I can skip lots of events and always retrieve the most current data/state from this system.

The api-server has (currently) one endpoint (basicly NetWebmethod) that registers the events. It's not entirely finished and needs some polishing on my end but it adheres to some standards and the article prevented me from making stupid mistakes (which there probably are still some in this system :-))

When it's stable I can post some code snippets so you can get the gist of it if you like to (currently working on the event processing bit and still making changes ...)

Regards,
Ton
20
Web Server - Ask For Help / Re: Index Page has losts its menu
« Last post by Richard I on September 24, 2026, 08:59:06 PM »
Hi Ron,
Ive got it back thanks
I was calling the login form first instead of the Index Page....where prviously I was calling the login form FROM the Index page....
So all good now, almost !
Cheers
Richard
Pages: 1 [2] 3 4 ... 10