O'Reilly logo

Extending Microsoft Dynamics NAV 2016 Cookbook by Alexander Drogin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Extending UI with page trigger events

Page trigger events provide a way to extend the functionality of UI actions on pages. As with other event types, the main purpose of an event is to allow developers to add custom code to base application objects without intrusion into the code.

Objects subscribing to a page trigger event are invoked when the user runs an action in the page, after the C/AL code located directly in the page, is executed.

How to do it...

This recipe shows how to use a page trigger event to assign a user account to a sales order on the Release action.

  1. Run the NAV development environment. In the Codeunit Designer, create a new codeunit 50903 Page Trigger Event.
  2. In C/AL Globals, declare a function OnReleaseSalesOrderAssignUserID.
  3. Open ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required