NetTalk Central

Author Topic: Several browses calls the same form.  (Read 3804 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 430
    • View Profile
    • Email
Several browses calls the same form.
« 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

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Several browses calls the same form.
« Reply #1 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
« Last Edit: July 09, 2016, 04:45:16 AM by peterH »

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 430
    • View Profile
    • Email
Re: Several browses calls the same form.
« Reply #2 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 .

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 430
    • View Profile
    • Email
Re: Several browses calls the same form.
« Reply #3 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