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)

Report triggers

Like other C/SIDE objects, reports allow full functional capabilities for extension and customization. C/AL code can be executed in report triggers to control the data flow, and in this section you will learn how to use the most common triggers to tailor the report output to your needs.

When the report object is executed, its triggers run in the following order:

  • OnInitReport: Executed before the report object is initialized.
  • OnPreReport: Executed after initializing the object, but before reading any data from the database.
  • OnPreDataItem: Executed before initializing the dataset for a data item. This trigger is a good place for filtering the dataset if you need to apply a filter dynamically, instead of setting it in the DataItemTableView property.
  • OnAfterGetRecord: Executed after the record is retrieved from the database.
  • OnPostDataItem: Executed after processing...