I can easily write a plugin to check the creditor and the user, but when I use
- Code: Select all
throw new JiwaFinancials.Jiwa.JiwaApplication.Exceptions.ClientCancelledException();
It lands back at the newly created GRN with the creditor there in the form.
I want to either i) clear the creditor which will allow the user to just select another creditor or
ii) simulate clicking the cancel button on the ribbon so they just need to start a new GRN.
I've tried
- Code: Select all
GRN.Creditor.Clear()
And I am not sure of the correct syntax to simulate clicking the cancel button.