Suppress Delete Notification for oTrans.Delete()?

Hey there,

I have a customization using oTrans.Delete(), and I get a delete confirmation message. I’ve tried suppressing it with:

oTrans.SuspendNotifications();

and

this.oTrans.SetCurrentEvent(TransactionEvent.None);

Neither made a difference. Is there a way to do this?

Thanks,

Joe

So first as you stated:

There is also:

this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnSaveAndNew = false;
this.oTrans.OrderForm.CurrentFormOptions.ConfirmOptions.ConfirmUpdateOnSaveButton = false;

Lastly, you can turn on Developer Mode then set your Form Options to not ask you about update and it will save it to the XML for everyone… be careful, you would then have to go and delete all the other settings it added to the xml via the Custom XML Editor.

Thanks for the info. I actually did see that post. :slight_smile:

But this is for oTrans.Delete() and not for Update(). Neither oTrans.SuspendNotifications() nor oTrans.SetCurrentEvent(TransactionEvent.None) seemed to have any effect.

Still wrestling.

Joe

Have you had any luck with this?

I am currently running into the same issue.

Sadly, I didn’t find a way to do what I wanted. The best I remember, I found another way to process it.

Joe

1 Like