Book Image

Getting Started with Dynamics NAV 2013 Application Development

By : Alex Chow
Book Image

Getting Started with Dynamics NAV 2013 Application Development

By: Alex Chow

Overview of this book

So, your company has made the wise decision to use Dynamics NAV as its main business software for all its enterprise resource planning. Dive in and learn the ins and outs of the software from a development standpoint and unlock the software's full potential.The book will walk you through creating an application from start to finish. Once you know how to create a working application that users can access, you will have the knowledge and the resources needed to create other applications based on the tutorials covered in this guide.You will start by obtaining a free trial version of Dynamics NAV and then be introduced to the world of analyzing and deriving user problems into a requirements list. Finally, you will be shown how to use the software to knock out these requirements. You will learn everything you need in order to begin creating your own applications, from translating the user's requirements to creating and modifying your system applications. Use Dynamics NAV's capability to create an application and address the user's needs, while also learning best practices and simple solutions. "Getting Started with Dynamics NAV 2013 Application Development" will help you on your way to becoming a great developer!
Table of Contents (17 chapters)
Getting Started with Dynamics NAV 2013 Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Put our code in the table


Dynamics NAV has internal functions to perform certain tasks. The list of these internal C/AL functions for tables can be found here:

http://msdn.microsoft.com/en-us/library/dd355032.aspx

Now that we know what code to put in and where to put it, go back to the tables in Object Designer and go to our table 50000, Complaint Header. Click on Design to enter the design mode.

The first thing we need to do is define the variables in our table. Click on View | C/AL Globals. Define the NoSeriesMgt variable as the NoSeriesManagement codeunit, or we can just copy and paste the variable from the Sales Header table. Be sure to highlight the whole line and copy and paste, otherwise you may just copy the name or the data type.

After the variable is defined, close the C/AL Globals screen and push F9 to go into the C/AL code.

We will omit the TestNoSeries function because we're defining the number series directly within the function.

Hardcoding values is not the correct way to...