How can a trigger display an error message to the user?

Posted by Rollbase User on 21-Jan-2013 22:51

I have a trigger invoked by users through a workflow action. On a specific legitimate condition the trigger generate an error. When it happens, how can I display an error message to the user?

All Replies

Posted by Admin on 22-Jan-2013 00:00

Try throw JavaScript exception:



throw "error message";

Posted by Admin on 22-Jan-2013 05:49

I added the throw statement in my "Object Script" trigger.

In the debug window, I can see it throwing an error as expected.



Unfortunately there is no sign of error on the user interface.

Instead I got this standard message from the workflow action:

Action "Send" has been performed on "L120229".



Any idea?

Posted by Admin on 22-Jan-2013 11:28

This should be fixed in the next release.

Posted by Admin on 26-Jan-2013 14:42

This should work now.

Posted by Admin on 09-Feb-2013 11:25

Thanks for fixing it.

Posted by Admin on 20-Aug-2013 12:34

Can we display a "Throw"-message in red (Error)?

This thread is closed