Reputation: 1442
I'm creating a plugin that I want to search through previous records for the same account and if there is already one open, then when they click on the save button to save this new record then the plugin should cancel the save. Is this possible in a C# plugin? I know it can be done in JavaScript but I've never done it in a plugin before.
Upvotes: 0
Views: 4214
Reputation: 309
You can throw an exception box (InvalidPluginExecutionException) from the plugin and have a friendly message inside it saying something like "account already exists", this would stop it from saving, don't know if that is something you are looking for ?
Upvotes: 4