The Check Detail Records server behavior allows the developer check if any detail records related to the master record that is being deleted exist. If detail records exist, the delete transaction is stopped, in order not to leave detail records that cannot be accessed.
To add a Check Detail Records trigger into the page, you must follow the next steps:
The user interface that opens is divided into
two tabs. Configure these tabs as follows:
· The
Basic tab, where options related to the actual check can be set.
· The
Advanced tab, where trigger specific options can be set.
The purpose of this user interface tab is to allow the developer set
up the check operation options:

To set the dialog box options, follow the next steps:
In the Transaction table drop-down menu, the table used in the delete/custom transaction on page is automatically selected and the drop-down menu is disabled.
In the Primary key drop-down menu select the table column containing the primary key of the transaction table.
In the Detail table drop-down menu select the table which acts as a detail table for the transaction one. This means that its fields are related to the transaction table through a field.
In the Detail foreign key drop-down menu, select the detail table column that stores the relation to the master table.
In the Error message text area enter the text to be displayed when the check fails, meaning that the detail records do not exist. You can use the InterAKT Dynamic Data (the lighting bolt icon) to build the message.
The three buttons in the top right corner of the
interface offer you the next functionalities:
· Click OK when you are done configuring the trigger.
· Click Cancel to exit without applying the new settings.
· The Help button opens this help page.
These buttons are common to both tabs of the Check
Detail Records
The purpose of this user interface tab is to allow the developer to
change the default trigger properties, to suit the particular situation.
All trigger properties (name, type, priority, transactions) can be set
from this dialog box:

For instructions on completing this step, see the Advanced tab. For the Check Detail Records trigger, by default the Priority is set to 40 and the Type is BEFORE (because checking if any detail records exist must be done before the delete transaction, so that it can be stopped).
The server behavior added this way can be edited later by double-clicking
its name in the Server Behaviors tab of
the Application panel.