In this article, you will read about creating SQL task actions in exMon DM. A SQL task action is a versatile way to make it easier to work with table data. Actions can be used to validate, backup or modify data. They can also be added as a button in the exMon editing area or programmed automatically execute when the table is saved.
Create your first action
Here are steps to create a basic validation action:
- Open the table you want to validate in exMon DM. Click on Table Designer in the navigation ribbon.
- Click Actions.
- Select the Add dropdown and click on SQL Task.
- Display name: Demo SQL Task
- DB Name: Demo DB (or your preferred Database name)
- Set the SQL query to:
update %TableName%
set __ValidationError = NULL
update %TableName%
set __ValidationError = 'Below 100.000'
where Price] < 100000 - Next, click the Execution tab
- Check Automatically run when saving data
- Selecting In Parameters allows the user to send custom parameters to the action.
- Click Run Action if you want to validate your data immediately.
- Click Save Tasks to save your action.