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)

Record variables

Record is one of the most important and widely used data types in C/AL code. A Record variable refers to a database table, and allows us to retrieve and manipulate table data. A code example in this section will demonstrate how to search data with a Record variable and update found records. This is a more business-related scenario than those we coded in previous sections. As an example, we will update sales prices for an item based on certain criteria calculated from other database tables.

Iterating over a recordset

To declare a Record variable, you must enter its name, select the Record data type in the DataType field, and choose one of the database tables as the variable's Subtype. In the next code...