Business rules
Let us create our first server-side script-a business rule. A business rule is a JavaScript code that is associated with a table, runs on the server, and is executed before, after, or asynchronously when a record is inserted, updated, deleted, or retrieved in the specified table.
The following business rule new record form has many fields and tabs available when the advanced checkbox is checked:
When to run
Actions
Advanced
(this tab is available only when the Advanced checkbox is checked)
- The business rule can execute based on the kind of database operations selected. One or more of the following different operations can be selected:
Insert
Update
Delete
(Only available when theAdvanced
field is checked)Query
(Only available when theAdvanced
field is checked and cannot be aborted)
When
: TheWhen
property is only available when theAdvanced
field is selected. When theAdvanced
field is unchecked, theWhen
property defaults to
. TheBefor
eWhen
property of the business rule can be...