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)

Publishing custom events

The NAV event model is not limited to events provided by the base application code or raised in response to system triggers. Developers can extend the model by raising their own events. To raise an event, you need to create a publisher function and call in your code where the event should be triggered. In this section, we will publish several events associated with specific actions on lease contracts.

Event publisher function

The event publisher function itself does not contain any code. We declare a publisher function to define its signature and identify the place in the code where the event is triggered. We will raise custom events on invoice and journal line creation in codeunit 50504 Customer...