removeDataSource
Removes data source from a database table.
Field Configurations
Key | Type | Description | Default Value |
---|---|---|---|
"params" (required) | Object | undefined | null |
Parameters
Key | Type | Description | Default Value |
---|---|---|---|
"async" | Boolean | Specifies whether the action should perform asynchronously. | null |
"error" | String | Event to be fired if action failed. | null |
"success" | String | Event to be fired if action is successfull. | null |
"table" (required) | String | The name of the database table. | null |
Inherited
From Base Action
Base Action
Field Configurations
Key | Type | Description | Default Value |
---|---|---|---|
"dynamicParams" | Object | Dynamic params to retrieve data from a specific context e.g. a userSetting. | null |
"leadingDelimiter" | String | The leading mustache delimiter to use. | null |
"params" | Object,Array | Object containing the properties of the action. | null |
"trailingDelimiter" | String | The trailing mustache delimiter to use. | null |
"type" | String | Type name of the action. | null |
Examples
Example 1: Create a removeDataSource action
Goal: Remove a data source from the database table called "bookings"
table
, success
and error
keys have to be assigned within the params
object of the action.
{
"type": "removeDataSource",
"params": {
"table": "bookings",
"success": "removeSourceSuccess",
"error": "removeSourceError"
}
}
Result:
The data source for database table "bookings" has been removed.