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)

Page triggers – C/AL code in pages

Most of C/SIDE objects can contain C/AL triggers which are executed in response to different user actions, and pages are not exception. In this section, we will familiarize ourselves with most common page triggers, their practical values, and their limitations.

For the next code example, we will need to extend the Lease Contract Header table. In the Card and List pages section, we created a table representing different types of contract payment schedules. Now, this table must be linked to the contract. To do this, open 50500 Lease Contract Header table, in the table designer and add a field as follows:

Field no. Field name Data type Length
9 Payment Terms Code Code 20

After declaring the field in the table, access its properties, and enter a new value for the TableRelation property. It should be Contract Payment Terms. Don&apos...