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)

Declaring variables – variable scope

As we saw in the previous topic in this chapter, functions and function parameters in C/SIDE are not declared directly in the code editor. Instead, they are entered in a tabular view presented in a separate editor. This is also true for variables; we do not describe variables in C/AL code, but access the variable declaration through the C/AL Locals and C/AL Globals windows.

Local variables

To illustrate the declaration and use of local variables, we will implement a simple algorithm comparing two strings to find the editorial distance, or Levenshtein distance. This distance is a measure of similarity between strings that is often used in various text processing systems to suggest...