Look up events and insert event subscriber in code, use the new Shift+Alt+E shortcut in the AL code editor to invoke a list of all events

A core part of extension-based “customization” is the use of events and event subscribers.
To identify an event and generate an event subscriber code template, we added the Event Recorder in the client some time ago, allowing recording and inspecting of thrown events; however, in many cases, developers are either aware of the event they want to subscribe to or want to have a fast way to search for the event (with type ahead/completion) and then insert event subscriber in code context.
Feature details

Use the new Shift+Alt+E shortcut in the AL code editor to invoke a list of all events.

Source :Microsoft Docs
Read more…

Look up events and insert event subscriber in code, use the new Shift+Alt+E shortcut in the AL code editor to invoke a list of all events.

A core part of extension-based “customization” is the use of events and event subscribers.
To identify an event and generate an event subscriber code template, we added the Event Recorder in the client some time ago, allowing recording and inspecting of thrown events; however, in many cases, developers are either aware of the event they want to subscribe to or want to have a fast way to search for the event (with type ahead/completion) and then insert event subscriber in code context.
Feature details

Use the new Shift+Alt+E shortcut in the AL code editor to invoke a list of all events.

Source : Microsoft Docs
Read more…

OnAfter table event subscriber patterns and antipatterns

The purpose of events is to simplify business logic customization while not impeding upgradeability and general extensibility. However, there is one particular class of events that may cause troubles: OnAfter* table events. There are four of them: OnAfterInsert, OnAfterModify, OnAfterDelete, and OnAfterRename.

Bron : Vjeko.com
Lees meer…