NetTalk Central

Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Web Server - Ask For Help / Re: How to execute code once on Form Load?
« Last post by JohanR 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



12
Web Server - Ask For Help / Re: How to execute code once on Form Load?
« Last post by JohanR 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 
13
Web Server - Ask For Help / Re: Server becoming temporarily non-responsive
« Last post by seanh on September 25, 2026, 05:37:07 PM »
Are you using the IMDD?  That did have a slight problem with memory that would cause odd behavior.  It showed up for me mostly as a secwin issue. 
This has been corrected at some point, I just can't remember when.

There was also a very small memory leak in the window event system for some versions of C11, It only leaked like 5 bytes or something and so took many events to cause a problem.  But a heavy webserver would do that.  That I believe is fixed in C12
14
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


 
15
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
16
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
17
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
18
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
19
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?
20
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
Pages: 1 [2] 3 4 ... 10