Book Image

Microsoft Dynamics NAV Development Quick Start Guide

By : Alexander Drogin
Book Image

Microsoft Dynamics NAV Development Quick Start Guide

By: Alexander Drogin

Overview of this book

Microsoft Dynamics NAV is an enterprise resource planning (ERP) software suite for organizations. The system offers specialized functionality for manufacturing, distribution, government, retail, and other industries. This book gets you started with its integrated development environment for solving problems by customizing business processes. This book introduces the NAV development environment – C/SIDE. It gives an overview of the internal system language and the most essential development tools. The book will enable the reader to customize and extend NAV functionality with C/AL code, design a user interface through pages, create role centers, and build advanced reports in Microsoft Visual Studio. By the end of the book, you will have learned how to extend the NAV data model, how to write and debug custom code, and how to exchange data with external applications.
Table of Contents (10 chapters)

UI events

Like the database trigger events described in the previous section, page trigger events are not raised by C/AL code, but initiated by the NAV platform. UI events are triggered in response to user actions in different UI controls. These events are closely related to traditional page triggers generated by pages and page controls.

To see how to use this type of event, we will extend the functionality of the action button Post on the 39 General Journal page. As the name implies, the Post button runs the Gen. Jnl.-Post batch job. Suppose we want to augment this function by opening the list of G/L entries posted by the job. Since what we want to do is perform a UI extension, it is logical to use UI events for this purpose.

We will place the new event subscriber in the same codeunit, Lease Contract Events, we used for event subscribers before. Create a function in the codeunit...