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

Creating the table and identifying the primary key(s)


For each table, there needs to be a unique identifier, or what's called a primary key. The primary key allows us to differentiate each record so we can get the proper content when we find that unique ID.

Let's bring back our user requirements again and see what we need to do.

Looking at the requirements, which would you choose to be the unique identifier or the primary key? Every incident needs a unique number so it can be tracked.

Right away, this requirement should jump out at you saying "USE ME AS A PRIMARY KEY!" By knowing the primary key of the table we're going to create, we can begin to create our table.

Let's do it! On the Object Designer screen, do the following:

  1. Click on Table.

  2. Click on New and you will get the Table Designer screen.

For the organization of the table, let's create the fields for our primary keys first. Enter the information as shown in the following example:

It's good practice to increment Field No. by 10 instead of...