December 2018
Intermediate to advanced
764 pages
31h 47m
English
Coded data rules are written in table and field triggers. They are used to enforce data integrity when it cannot be obtained with simple mechanisms, such as field types or table relations.
One of these data rules that you can see all over the application can be found in the OnDelete() trigger of most tables. In this trigger, conditions are usually checked to prevent the user from deleting certain information.
The following screenshot shows an example of C/AL code existing in the OnDelete trigger for Table 14 - Location - C/AL Editor:

In the OnDelete() trigger of the Location table, some conditions are checked using the WMSCheckWarehouse ...
Read now
Unlock full access