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

Defaulting fields using code


Before we continue, let's check off what we've done in our requirement list:

The next task is to have our program fill in the customer name, address, and so on when the Customer No. field is filled in. We'll draw inspiration from our Sales Header table. Working with the Sales Order table, we know that the customer information is automatically populated when the Sell-to Customer No. field is entered.

Let's go back to the Sales Header table, click on the Sell-to Customer No. field, and go to the C/AL code by pressing F9. Scroll down (or press Page Down) until you find some reference for Address.

Looking at the code here, you can probably guess that GetCust is a function to get the customer information. To verify this, use the Find function (Ctrl + F) to search for GetCust. You can also highlight the GetCust word, right-click, and click on Go to Definition....

When we use Go To Definition..., the function in question will be brought up. If we use the Find (Ctrl + F...