Page 1 of 1

Break out of event

PostPosted: Wed Sep 26, 2018 4:34 pm
by Riyaz
Hi

Is it possible to breakout of events, say sales order save end event or similar, if we want to check a condition and if fails break the event.

Thanks

Re: Break out of event  Topic is solved

PostPosted: Wed Sep 26, 2018 7:22 pm
by SBarnes
If I am understanding you correctly and you are wanting to stop Jiwa from processing any further i.e. stop the save throw the following exception

Code: Select all
 JiwaFinancials.Jiwa.JiwaApplication.Exceptions.ClientCancelledException

Re: Break out of event

PostPosted: Thu Sep 27, 2018 11:50 am
by Riyaz
Thanks Stuart, exactly that