Triggers can also be defined for actions. E.g.:

  • OnLoad
  • OnSuccess
  • OnError
  • OnValueChange
  • OnCustomEvent

OnLoad

Triggers an action when a component is loaded.

It supports the following parameters:

PropertyDescriptionNotes
actionIdthe action to run
timeshow many times to repeat call the action
timeoutdelay between callsmilliseconds
conditioncondition which enables the trigger. The action will be called only if the result of the evaluation of teh condition returns truejavascript

OnSuccess

Triggers an action when a call to the server succeeds.

It supports the following parameters:

PropertyDescriptionNotes
actionIdthe action to run
calledActionIdthe action which succeeded
conditioncondition which enables the trigger. The action will be called only if the result of the evaluation of teh condition returns truejavascript

OnError

Triggers an action when a call to the server fails.

It supports the following parameters:

PropertyDescriptionNotes
actionIdthe action to run
calledActionIdthe action which failed
conditioncondition which enables the trigger. The action will be called only if the result of the evaluation of teh condition returns truejavascript

OnValueChange

Triggers an action when the user updates a value in a form.

It supports the following parameters:

PropertyDescriptionNotes
actionIdthe action to run
propertyNamethe property name of the value changed
conditioncondition which enables the trigger. The action will be called only if the result of the evaluation of teh condition returns truejavascript