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 and calling functions

When you open a NAV application object in the designer and review its code, function names are probably among the first things you notice. Code is structured in blocks with function headers clearly highlighted in bold font. But if you try to change a function's declaration—for example, change its name or add a parameter—you will see that the line with the function declaration is not editable.

Function names, return types, and parameter lists are accessed through a separate editor, and cannot be modified in the main code editor window.

In the next example, we will create a simple function to illustrate the process of declaring C/AL functions. This is a slightly modified version of the previous Hello World example. Now, we will not show the message in the standard codeunit trigger, but delegate the greeting to a local function instead...