NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Niels Larsen on July 09, 2016, 01:03:18 AM

Title: Several browses calls the same form.
Post by: Niels Larsen on July 09, 2016, 01:03:18 AM
Hi

How to identify the browse that initiate the call?
I need to use it in relation to initiation the form - priming variables.

Any ideas?

Regards Niels
Title: Re: Several browses calls the same form.
Post by: peterH on July 09, 2016, 04:32:05 AM
Hi Niels,

There's a local var - loc:parent - in all netwebform procedures. I don't recall having used it myself but maybe worth investigating.

Updated: it turns out that I did use it, but that was "the other way around". I use it in a browse procedure to determine which form called the browse. loc:parent holds the procedure name!

Peter
Title: Re: Several browses calls the same form.
Post by: Niels Larsen on July 10, 2016, 11:21:19 PM
Thanks for the tip.
I will try.
I forgot to mention that both the form and browse is popup. Do not know if it makes a difference .
Title: Re: Several browses calls the same form.
Post by: Niels Larsen on July 11, 2016, 11:57:27 PM
Hi Peter

Didn't work :-(
Maybe because I have a form with a memory form with 3 browses calling the same form.
One way could be to put a .click javascript on the insert button, but the insert_btn id changes on every compile, Any way to make the insert button id static?

Regards Niels