Create custom errors in GUI from event system

Introduction

It's possible to create a custom error message in the GUI from the event system. You can use this functionality for example in the OnComponentSavePre Event (e.g. to check values of fields before saving a Component).

1. Adding the code to your event system

Add the following code to your event system

Call Err.Raise(-10, "OnComponentSavePre", "No documenttype selected, this is a mandatory field.")

You can use every error number below zero (negative) and above 2000.