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)

Compiling a codeunit and error handling

As we already know, codeunits, as well as other application objects, are created in the Object Designer. The first time you save a new object, you will be requested to assign an ID number and a name to it and compile the object. But the Compiled option prevents saving the object if its code has syntax errors. Let's see how we can handle the commonplace situation of saving an object before fixing bugs.

Handling compilation errors

If the code of an object contains a syntax error, an attempt to compile this object will fail, and the compilation will stop on the first encountered error. Let's modify the Hello World example from the previous chapter and see how the Object Designer...