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 / Re: Calling a popup form from a button on a parent memory form.
« on: October 24, 2026, 07:30:50 AM »
Hi Alberto
Did you get this to work?
Parent = memory form, Button to popup form (update a file)
thanks
Johan
Did you get this to work?
Parent = memory form, Button to popup form (update a file)
thanks
Johan
2
Web Server - Ask For Help / Re: How to execute code once on Form Load?
« on: September 27, 2026, 04:21:44 AM »
Hi,
Yes I think def the multi-tab is at play.
Think will try to make the meeting on Wed,
perhaps a live question and answer will help to show where my problem is, or my implementation is going wrong.
thanks for all your assistance
Johan
Yes I think def the multi-tab is at play.
Think will try to make the meeting on Wed,
perhaps a live question and answer will help to show where my problem is, or my implementation is going wrong.
thanks for all your assistance
Johan
3
Web Server - Ask For Help / Re: How to execute code once on Form Load?
« on: September 26, 2026, 12:49:14 AM »
Hi,
This is what I've found,
but don't have enough knowledge on how to manage or control it, or even to confirm 100%.
If multi TAB true
Page is opened or loaded from the the address bar or via an email link etc...
no tabid part of the GET for first request and this triggers a GET /NewTabID, which then triggers a second
SESSIONID=fCFz0FqUHQBltVRRb5WhZyfrmKd1tE
The same page from a menu item, includes the TABID and does not trigger GET /NewTabID
SESSIONID=fCFz0FqUHQBltVRRb5WhZyfrmKd1tE; x-TabID=7cf99jil
If multi TAB false, all works fine
Hoping for some ideas here, or point where I go wrong.
One possible way is to query the TABid and knowing whether it's required or not?
But as I mentioned, not sure if that is best way.
thanks
Johan
This is what I've found,
but don't have enough knowledge on how to manage or control it, or even to confirm 100%.
If multi TAB true
Page is opened or loaded from the the address bar or via an email link etc...
no tabid part of the GET for first request and this triggers a GET /NewTabID, which then triggers a second
SESSIONID=fCFz0FqUHQBltVRRb5WhZyfrmKd1tE
The same page from a menu item, includes the TABID and does not trigger GET /NewTabID
SESSIONID=fCFz0FqUHQBltVRRb5WhZyfrmKd1tE; x-TabID=7cf99jil
If multi TAB false, all works fine
Hoping for some ideas here, or point where I go wrong.
One possible way is to query the TABid and knowing whether it's required or not?
But as I mentioned, not sure if that is best way.
thanks
Johan
4
Web Server - Ask For Help / Re: How to execute code once on Form Load?
« on: September 25, 2026, 09:26:40 PM »
Hi Jane
Thanks for reply.
That is the confusing thing , p_stage is the same in the log
Took the web1 example app and added a memory form with trace in those embeds,
If multi tab support is set to true, then those embeds execute twice and I can't see which flag/stage/event to check for 1st time
I must be missing something,
solution at the moment is to switch off multi tab support,
until I get a definitive check to use.
thanks
Johan
Thanks for reply.
That is the confusing thing , p_stage is the same in the log
Took the web1 example app and added a memory form with trace in those embeds,
If multi tab support is set to true, then those embeds execute twice and I can't see which flag/stage/event to check for 1st time
I must be missing something,
solution at the moment is to switch off multi tab support,
until I get a definitive check to use.
thanks
Johan
5
Web Server - Ask For Help / Re: How to execute code once of Form Load?
« 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
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
6
Web Server - Ask For Help / Re: How to execute code once of Form Load?
« 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
7
Web Server - Ask For Help / Re: How to execute code once of Form Load?
« 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
8
Web Server - Ask For Help / How to execute code once on Form Load?
« on: September 24, 2026, 02:43:47 AM »
Hi,
What is the preferred method or embed to ensure code only runs once on form generation, popup or page loaded.
I am currently using
if (p_web.GetValue('SignInResetPassword_form:inited_') = 1)
Using code below, it runs through twice, even if checking on p_web.SetValue('SignInResetPassword_form:inited_',1)
Attached code and debuglog for initform and preupdate code/logs
thanks for any advice
Johan
InitForm Routine
DATA
LF &FILE
! Start of "Initalize the Form before anything else is done"
! [Priority 5000]
! End of "Initalize the Form before anything else is done"
CODE
! Start of "Initalize the Form before anything else is done"
! [Priority 5000]
ds_OutputDebugString('>>> InitForm <<<' & format(clock(),@t06))
if (p_web.GetValue('SignInResetPassword_form:inited_') = 1)
ds_OutputDebugString('========== 2nd time' & format(clock(),@t06))
else
ds_OutputDebugString('========== 1st time' & format(clock(),@t06))
end
! End of "Initalize the Form before anything else is done"
p_web.SetValue('SignInResetPassword_form:inited_',1)
p_web.formsettings.file = ''
p_web.formsettings.key = ''
do RestoreMem
! Start of "Initalize the Form before anything else is done"
! [Priority 5000]
What is the preferred method or embed to ensure code only runs once on form generation, popup or page loaded.
I am currently using
if (p_web.GetValue('SignInResetPassword_form:inited_') = 1)
Using code below, it runs through twice, even if checking on p_web.SetValue('SignInResetPassword_form:inited_',1)
Attached code and debuglog for initform and preupdate code/logs
thanks for any advice
Johan
InitForm Routine
DATA
LF &FILE
! Start of "Initalize the Form before anything else is done"
! [Priority 5000]
! End of "Initalize the Form before anything else is done"
CODE
! Start of "Initalize the Form before anything else is done"
! [Priority 5000]
ds_OutputDebugString('>>> InitForm <<<' & format(clock(),@t06))
if (p_web.GetValue('SignInResetPassword_form:inited_') = 1)
ds_OutputDebugString('========== 2nd time' & format(clock(),@t06))
else
ds_OutputDebugString('========== 1st time' & format(clock(),@t06))
end
! End of "Initalize the Form before anything else is done"
p_web.SetValue('SignInResetPassword_form:inited_',1)
p_web.formsettings.file = ''
p_web.formsettings.key = ''
do RestoreMem
! Start of "Initalize the Form before anything else is done"
! [Priority 5000]
9
Web Server - Ask For Help / Re: Media how to display PDF in a BLOB in a Media Object
« on: September 16, 2026, 10:40:04 PM »
Hi Ron
Think you need to save the PDF to disk and then specify the name of the file in the media control.
regards
Johan
Think you need to save the PDF to disk and then specify the name of the file in the media control.
regards
Johan
10
Web Server - Ask For Help / Re: Show/hide password in login form
« on: September 15, 2026, 04:18:57 AM »
Hi Richard
I recently did some work on my login screen and your post got me to bring this functionality forward.
Also wanted to see how AI would handle this and use it as a learning exercise.
I know you mentioned you prefer no JS, but this worked quite nicely.
This was done with adding a JS file and some CSS , courtesy of AI
Let me know then I can adjust the CSS and JS to make sure it's generic for use on any other page with different naming
Still testing but working well so far.
regards
Johan
I recently did some work on my login screen and your post got me to bring this functionality forward.
Also wanted to see how AI would handle this and use it as a learning exercise.
I know you mentioned you prefer no JS, but this worked quite nicely.
This was done with adding a JS file and some CSS , courtesy of AI
Let me know then I can adjust the CSS and JS to make sure it's generic for use on any other page with different naming
Still testing but working well so far.
regards
Johan
11
Web Server - Ask For Help / Re: JS to update session variables or page fields?
« on: September 10, 2026, 05:11:11 AM »Hi,
Think I found the problem, had an issue in the JS.
Will complete testing and resolve and report back
thanks
Johan
12
Web Server - Ask For Help / JS to update session variables or page fields?
« on: September 10, 2026, 01:57:43 AM »
Hi,
I am dabbling with the new GooglePlaces address lookup,
and have a very nice smooth interface working.
There are 3 script files and the last one is where the values returned from google places needs to be updated into NTWS and ideally update the fields on the page.
The script files handle all the communication and on screen type ahead interface.
Is there a script to push the values to update session variables along with the page fields?
Or another way to handle this?
thanks
Johan
tvcg1.js ? Google Loader
Stores the Google API key and loads the Google Maps/Places JavaScript library.
tvcg2.js ? Address Search
Creates the Google address search box, restricts searches by country, and gets the selected address from Google.
tvcg3.js ? Address Mapping
Breaks the Google address into its parts and puts them into the correct NTWS fields ? street, suburb, city, province, postcode, country, etc.
thanks
Johan
I am dabbling with the new GooglePlaces address lookup,
and have a very nice smooth interface working.
There are 3 script files and the last one is where the values returned from google places needs to be updated into NTWS and ideally update the fields on the page.
The script files handle all the communication and on screen type ahead interface.
Is there a script to push the values to update session variables along with the page fields?
Or another way to handle this?
thanks
Johan
tvcg1.js ? Google Loader
Stores the Google API key and loads the Google Maps/Places JavaScript library.
tvcg2.js ? Address Search
Creates the Google address search box, restricts searches by country, and gets the selected address from Google.
tvcg3.js ? Address Mapping
Breaks the Google address into its parts and puts them into the correct NTWS fields ? street, suburb, city, province, postcode, country, etc.
thanks
Johan
13
Web Server - Ask For Help / Re: NTWS load testing and other info software?
« on: August 12, 2026, 02:58:54 AM »
Hi Johan
Yes! it is one of the items I could not recall.
And there was another external one that was discussed in on of the webinars.
Think it was similar to leaping frog with type of output.
The memory getting a little shaky nowadays
thanks
Johan
Yes! it is one of the items I could not recall.
And there was another external one that was discussed in on of the webinars.
Think it was similar to leaping frog with type of output.
The memory getting a little shaky nowadays

thanks
Johan
14
Web Server - Ask For Help / NTWS load testing and other info software?
« on: August 11, 2026, 09:39:05 PM »
Hi,
I recall there was software recomended to test a webserver/website.
This will mostly be for the public facing area.
I have been using ScreamingFrog free version and , provides very good info and easy to read,
but free version only does 1 connection and the paid version a little beyond my budget for this exercise.
Also been using loader.io
Any other tips possibly on helpful load testing software?
thanks
Johan
I recall there was software recomended to test a webserver/website.
This will mostly be for the public facing area.
I have been using ScreamingFrog free version and , provides very good info and easy to read,
but free version only does 1 connection and the paid version a little beyond my budget for this exercise.
Also been using loader.io
Any other tips possibly on helpful load testing software?
thanks
Johan
15
Web Server - Ask For Help / Re: Update field/variable on lose focus?
« on: August 10, 2026, 08:35:26 PM »
Hi Ron
Thanks for the info
Was thinking along the same lines.
Another method that I am trying to get to work is using the SAVE button, this seems to do the field update correctly.
However this is the LOGIN page, and it was called from a page that requires the login
So the SAVE button URL does not work.
The issue comes in that I have added a few forms hanging off the login procedure and the _chain_ is at play, so it wants to go back to the page that called the login procedure.
These extra forms are for password resets, OTP's , new signups etc..
Still working through this.
regards
Johan
Thanks for the info
Was thinking along the same lines.
Another method that I am trying to get to work is using the SAVE button, this seems to do the field update correctly.
However this is the LOGIN page, and it was called from a page that requires the login
So the SAVE button URL does not work.
The issue comes in that I have added a few forms hanging off the login procedure and the _chain_ is at play, so it wants to go back to the page that called the login procedure.
These extra forms are for password resets, OTP's , new signups etc..
Still working through this.
regards
Johan