Counting Dependent Records
The number of activities stored for a company should be entered in a free field in the company record. Each time a change is applied to the Activity info area, the number should be recalculated.
- Define the following trigger:

- Define the following reference:

Only those records are counted that are dependent on the current record (Root info area column).
- Save the trigger.
- Switch to the Rights info area.
- Click in the Triggers cell for the Activity info area.
- Define the following database event:
- Save the access rights and assign it (to a station).
Each time a activity is edited, deleted or added, the number of records stored for the parent company is written to the FreeN1 field in the company record.