Axelor Doc

Events

Events mean everything that happens when you click a button or in a field or when loading or saving a view.

The different events are supported:

  • onNew: When you create a new record,
  • onLoad: When loading a view
  • onSave: When saving a record,
  • onChange: When the value of a field is changed,
  • onSelect: When you select a record from a relational field,
  • onClick: When you click on a button or in a field.

The table below defines each tag possible actions:

Actions/Tags onNew onLoad onSave onChange onSelect onClick
<grid>
<form>
<field>
<button>

You can perform more than one action on an event. The rule is that the result of each action is applied in the same sequence. If one of the actions is a validation action, and this results in an error or warning, the subsequent processing of the shares will be interrupted.