NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: John Fligg on March 18, 2012, 12:07:10 PM

Title: How to cancel a delete
Post by: John Fligg 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
Title: Re: How to cancel a delete
Post by: Bruce 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