NetTalk Central

Author Topic: How to cancel a delete  (Read 2656 times)

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
How to cancel a delete
« on: March 18, 2012, 12:07:10 PM »
I am sure the answer is here but cannot find it using search.

I need to add my own delete confirmation/add some code before the delete confirm message. Alternatively I can add  my own delete button on a browse.

But how do you actually cancel the delete action? I am sure you have to set "ans" or something.

Thanks

John

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to cancel a delete
« Reply #1 on: March 18, 2012, 10:11:32 PM »
you can't add code before the popup message, because the popup message is JavaScript attached to the button when the form generates.

You can add code to the PreDelete routine - yes setting ans to 0 cancels the action.

cheers
Bruce