Skip to main content

fireEvent

Fires the specified event. CAUTION: If a query, table and template is used the template definition differs from the normal client template syntax. In this case the template is simply used to map database row names to event parameter names.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"async"BooleanSpecifies whether the action should perform asynchronously.null
"eventParams"ObjectThe parameters of the event to be appended.null
"eventType" (required)StringThe name of the event to be fired.null
"query"StringThe name of the query to be used.null
"queryMode"StringThe query mode ("all" have to be used if the action should be performed for each result row).null
"queryParams"ArrayThe list of the query parameters to be appended.null
"table"StringThe database table from which the data should be retrieved.null
"template"StringThe name of the template to be applied to the database table data.null

Inherited

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType name of the action.null

Examples

Example 1: Fire an event

Goal: Send an event called "getData", provide database table, query, and template to it.

{
"type": "fireEvent",
"params": {
"eventType": "getData",
"table": "table",
"query": "query",
"template": "template"
}
}

Result:

A fireEvent action has been created.