Break out of event  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Break out of event

Postby Riyaz » Wed Sep 26, 2018 4:34 pm

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
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

Re: Break out of event  Topic is solved

Postby SBarnes » Wed Sep 26, 2018 7:22 pm

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
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Break out of event

Postby Riyaz » Thu Sep 27, 2018 11:50 am

Thanks Stuart, exactly that
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 13 guests

cron