NetTalk Central

Author Topic: PreInsert firing after pop up lookup closes  (Read 3843 times)

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
PreInsert firing after pop up lookup closes
« on: May 04, 2017, 08:26:52 PM »
Hi, Bruce

I am encountering a problem with all my forms calling PreInsert again on returning from a pop up lookup.  I wizarded up a small app (attached) that demonstrates the problem.  The Test menu button calls the TestForm which includes a pop up lookup for 'Resource' .  TestForm has Insert as the default action.  PreInsert has a trace statement to show the problem.

I wasn't able to reproduce the problem in one of the examples,  so it may be more recent change in the templates.  One thing I noticed in the server logs is that a couple of encrypted cookies are being passed.    These cookies have meaning in a real application, but were not included in the wizarded app yet they are still being passed.  Any chance these are interfering with the stage parameter?   Any workaround?

Thanks a lot. 

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: PreInsert firing after pop up lookup closes
« Reply #1 on: May 07, 2017, 11:16:44 PM »
>> TestForm has Insert as the default action.

This is the root of the problem.
I've fixed it for the 9.27 build.

>> These cookies have meaning in a real application, but were not included in the wizarded app yet they are still being passed.

Cookies are sent from the browser when the host name matches the cookie host name. The server _sets_ cookies, but does not decide which ones are sent.

therefore, if you build one app, which sets cookies for say 127.0.0.1 , then those cookies are _always_ sent by the browser for that URL. It doesn't know another app is now running at that address.

>> Any chance these are interfering with the stage parameter?

no.

Cheers
Bruce

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: PreInsert firing after pop up lookup closes
« Reply #2 on: May 08, 2017, 02:38:31 PM »
Thanks, Bruce.

Clearly, I wasn't thinking on localhost cookies.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: PreInsert firing after pop up lookup closes
« Reply #3 on: May 08, 2017, 09:45:43 PM »
9.27 is up