Handlers can be defined in the property dialog boxes of Application nodes, Pages and Data groups.
They can be used to run Groovy scripts. Within them, a distinction is made between an Action handler,
which reacts to actions like saving or deleting data, and a Rendering handler, which is activated when the page is shown.
Action handlers can be used, for example, to write values from a data record when a new record is
saved in a processing context, such as to create a history of a process.
An additional example of an application would be to generate IDs, such as NAME_YEAR_CUMULATIVE_NUMBER
is required. For security reasons, the use of a handler is advantageous as well, since code is run on the server instead of client-side.
The scripts are run in the corresponding environment in which they are saved – scripts on a page are only run for that page,
while scripts in data groups are run on all pages and actions contained in the data group, and scripts in the application node are run application-wide.
Open the Properties dialog box for the desired element, such as an edit page, and switch to the Handler tab.