Hi,
I have been struggling for a while in finding a way to correctly handle server generated errors. For example, if I have a business rule that gets broken while trying to insert/update an event, I would like to show the appropriate message and action to follow or at least the exception message that generated the error.
So far, I have managed to receive an error status by adding the following snippet
On the View
dp.attachEvent("onAfterUpdate", function (sid, action, tid, tag) {
if (action == "error") {
alert("Ther was an error");
return false;
}
but I would like to show a more descriptiive message depending on the error received.
How can I receive additional data on the event processing function?
Thanks