11
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
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
12
Web Server - Ask For Help / NetWebBrowse with Memory Form not positioning on newly added record
« Last post by TimR on September 25, 2026, 08:28:20 AM »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?
13
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
14
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
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
15
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
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
16
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
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
17
Web Server - Ask For Help / Re: Webhooks in Nettalk?
« Last post by rjolda on September 24, 2026, 03:15:12 PM »HI Ton,
Very interesting article. Perhaps you might want to share how you use webhooks in NetTalk and why.
Thanks,
Ron
Very interesting article. Perhaps you might want to share how you use webhooks in NetTalk and why.
Thanks,
Ron
18
Web Server - Ask For Help / Re: How to execute code once of Form Load?
« Last post by rjolda on September 24, 2026, 12:48:58 PM »Hi Johan,
I wanted to capture the last SAVE to File event and run code there. I put an embed there and traced the stage each time that it ran and I found that p_stage=65536 was the embed point at the very end. I put code there and it only runs ONCE. So, I would suggest you place a debug trace on the embed you want and see what stage it runs at and see if you can isolate a stage (by number) that runs only ONCE.
I am not sure that it is best practice but it works ! ( forms can get called many times as the web server services other calls and keeps coming back to the open form for that user)
Ron
I wanted to capture the last SAVE to File event and run code there. I put an embed there and traced the stage each time that it ran and I found that p_stage=65536 was the embed point at the very end. I put code there and it only runs ONCE. So, I would suggest you place a debug trace on the embed you want and see what stage it runs at and see if you can isolate a stage (by number) that runs only ONCE.
I am not sure that it is best practice but it works ! ( forms can get called many times as the web server services other calls and keeps coming back to the open form for that user)
Ron
19
Web Server - Ask For Help / Re: Index Page has losts its menu
« Last post by rjolda on September 24, 2026, 12:36:54 PM »HI Richard,
I have had the menu go wonky several times. I use a double drop menu. Sometimes after editing a menu item, it goes wonky and goes to Task Panel or Accordion and is half missing. So, I would check that first.
Ron
I have had the menu go wonky several times. I use a double drop menu. Sometimes after editing a menu item, it goes wonky and goes to Task Panel or Accordion and is half missing. So, I would check that first.
Ron
20
Web Server - Ask For Help / Index Page has losts its menu
« Last post by Richard I on September 24, 2026, 03:41:48 AM »Please tell me how I can restore the Menu to visible view in my PageHeaderTag
Everything looks ok in there.
I dont know why or how it fell off other than I have been playing with Themes syles and scripts...
Thanks
Richard
C12.4000 NT 14
Everything looks ok in there.
I dont know why or how it fell off other than I have been playing with Themes syles and scripts...
Thanks
Richard
C12.4000 NT 14
Recent Posts