Introduction

Completed

In this module, you'll learn about the different object triggers. Each object (such as tables, pages, and codeunits) has a number of properties. In addition to these properties, each object has a number of triggers.

Triggers are predefined functions that the system automatically generates. As a developer, you can write code that will be run as these functions are triggered. The OnOpenPage trigger (which is a trigger of the Page object) will run when a user opens a page.

The OnInsert trigger on the table will run when a new record is inserted into the database. If you want to perform extra validations on the data before it is inserted into the database, you can do that in the OnInsert trigger.

This module will describe the different table and field triggers for the Table object. You'll also learn more about the available page triggers, controls, and action triggers for the Page object.

Additionally, you will learn about event-based architecture. With events, you can connect to the core application without having to modify the existing code. When an event occurs, you can react with your own code to these events.