DSP® Application Development
Create an External Page Business Rule
An External Page rule allows you to execute a plugin as the event action to determine whether the associated record is valid. The validation fails if a non-zero result is returned.
Refer to Business Rule Guidelines for general information.
To create an External Page Business Rule for a field in DSP Application Development:
- Select Admin > WebApps in the Navigation pane.
- Click the Pages icon for the WebApp.
- Click the Events icon for the page.
OR
- Access the WebApp page.
- Click the Change Settings icon on the Site toolbar.
- Click Design.
- Click the Events icon for the page.
-
Click the Business Rules icon for the event.
NOTE: If no record exists, the page displays in ad mode. Otherwise, click Add.
-
Enter a value in the PRIORITY field to determine execution order.
NOTE: CranSoft attempts to wrap all procedures within a single SQL transaction. To avoid deadlocks, all pending transactions are committed before executing an external process. As a result, mixing external processes and SQL stored procedures can result in errors which cannot be completely rolled back. To minimize the effect, consider placing all external processes after SQL stored procedures by giving them a higher priority.
- Verify the ACTIVE check box is checked.
- Select External Page from the PROCEDURE TYPE list box.
- Click Save; the Vertical View displays.
- Select the name of the plugin that executes when the event fires from the Web App Plugin Type Code list box.
-
Enter text describing what the stored procedure does in the Comment field.
NOTE: This comment is a description of the event; it does not display to the end user.
- Click the Advanced Properties label to expand the label set.
- Verify the Run On Validate check box is checked.
-
Click Save.
NOTE: Business Rules run only after all validation rules on the page are processed without error.