Trigger is a piece of code that is executed in response to some external action. All objects in NAV, except Menu Suite, have a set of triggers that can be programmed to respond to certain user's or system actions. For example, when a page with data is displayed on the screen, a sequence of triggers are fired in the application.
OnInit: Page object is initialized
OnOpenPage: Page is displayed
OnAfterGetRecord: Table record displayed on the page is read from the database
OnAfterGetCurrRecord: Table record currently selected is read from the database
There are other triggers reacting to UI elements, data modifications or to external events from .NET components. We will delve deeper into different types of objects and corresponding ...