NetTalk Central

Author Topic: NetWebForm as Popup  (Read 3207 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
NetWebForm as Popup
« on: June 05, 2016, 10:08:08 AM »
Hi Guys,

When I change a NetWebForm to "Open as Popup", the form automatically creates the new record, even if the user cancels the "insert" form.

Changing it back (Not to Open as Popup) fixes the problem, so that the user has to click "Save" for the new record to be created.

Is the Popup-form supposed to create the new record upon insert?



Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NetWebForm as Popup
« Reply #1 on: June 06, 2016, 10:58:06 PM »
Hi Rupert,

>> Is the Popup-form supposed to create the new record upon insert?

Depends if you are using auto-numbering for your primary keys. If you are (and certain other conditions are met) then yes, it is supposed to do that.

You can override it on the Advanced tab if you like - but then of course you cannot add child records until the parent has been saved.

Hint: Stop using auto-numbering for Primary keys!

cheers
Bruce