Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Microsoft Dynamics NAV 2013 Application Design
Microsoft Dynamics NAV 2013 Application Design

Microsoft Dynamics NAV 2013 Application Design: Customize and extend your vertical applications with Microsoft Dynamics NAV 2013 , Second Edition

Arrow left icon
Profile Icon Mark Brummel Profile Icon Marije Brummel
Arrow right icon
€27.98 €39.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7 (3 Ratings)
eBook Sep 2014 504 pages 2nd Edition
eBook
€27.98 €39.99
Paperback
€49.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Mark Brummel Profile Icon Marije Brummel
Arrow right icon
€27.98 €39.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7 (3 Ratings)
eBook Sep 2014 504 pages 2nd Edition
eBook
€27.98 €39.99
Paperback
€49.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€27.98 €39.99
Paperback
€49.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Table of content icon View table of contents Preview book icon Preview Book

Microsoft Dynamics NAV 2013 Application Design

Chapter 2: A Sample Application

Let's create a structure of our own in Microsoft Dynamics NAV. To do this, we must think of something that is not already available in the standard package but can be built on top of it.

For our example application, we will run a squash court. Running a squash court is simple to understand but something we cannot do without changing and expanding the product. In order to define our changes, we first need to make a fit-gap analysis.

After this chapter, you will have better understanding on how to reuse the framework of the Microsoft Dynamics NAV application. We will show how to reverse engineer the application and to study its functionality by going into the application code.

For this example, some new and changed objects are required. The Appendix, Installation Guide, describes where to find the objects and how to install and activate them.

In the first part, we will look at how to reverse engineer the standard application to look at...

Fit-gap analysis

When we do a fit-gap analysis, we look at the company's processes and define what we can and cannot do with the standard package. When a business process can be handled with the standard software we call this a Fit. When this cannot be done it's called a Gap. All gaps have to be either developed or we need to purchase an add-on.

However, even when something could be done with standard software features it does not necessarily mean that doing this is wise. The standard application should be used for what it is designed for. Using standard features for something else might work in the current version but if it changes in a new version it might no longer fit. For this reason it is better to design something new instead of wrongly using standard features.

Designing a squash court application

The basic process of a squash court company is renting the courts to squash players; both members and non-members. There is a reservation and invoicing process handling...

Getting started

In the first part of the design process, we will look at how to reverse engineer the standard application in order to learn and reuse the knowledge in our own solution.

Creating squash players

For the administration of our squash players, we use the data from the contact table. In the standard product, it is possible to create a customer or vendor with the contact data. We require the same functionality to create squash players so let's have a look at how this is done by Microsoft.

Open Contact Card and try to find this function, as shown in the following screenshot:

We want a function like this for our squash players. So let's get in and see what it does. For this, we need to design the page and look at the actions. The page number in this case is 5050, which we can find by clicking on About this Page in the top-right corner of the page, as shown in the following screenshot:

This option can be very useful to find information about the...

Designing a journal

Now, it is time to start on the product part of the squash application. In this part, we will no longer reverse engineer in detail. We will learn how to search in the standard functionality and reuse parts in our own software.

For this part, we will look at resources in Microsoft Dynamics NAV. Resources are similar to using as products as items but far less complex making it easier to look and learn.

Squash court master data

Our company has 12 courts that we want to register in Microsoft Dynamics NAV. This master data is comparable to resources so we'll go ahead and copy this functionality. Resources are not attached to the contact table like the vendor/squash player tables. We need the number series again so we'll add a new number series to our Squash Setup table.

The Squash Court table should look like this after creation:

Chapter objects

With this chapter some objects are required. A description of how to import these objects can...

The posting process

Our journal is now ready to be posted. We've implemented all business logic, except the posting code.

The posting process of a journal in Microsoft Dynamics NAV has several codeunits for the structure:

  • Jnl.-Check Line: This codeunit checks if the journal line is valid for posting.
  • Jnl.-Post Line: This codeunit does the actual creation of the ledger entry and register tables and calls other Jnl.-Post Line codeunits if necessary to provide the transaction structure in Chapter 1, Introduction to Microsoft Dynamics NAV.
  • Jnl.-Post Batch: This codeunit loops though all journal lines in a journal batch and posts all the lines.
  • Jnl.-Post: This is the codeunit that is called from the page. It calls the Jnl.-Post Batch codeunit and takes care of some user messaging.
  • Jnl.-Post+Print: This is the codeunit that is called when you click on Post + Print. It does the same as the Jnl.-Post codeunit but with the additional printing of a report...

Invoicing

The last issue on our to-do list is the invoicing process. For this, we use a part of the standard application.

As explained in Chapter 1, Introduction to Microsoft Dynamics NAV, invoicing is done using a document structure with a header and a line table. This has a posting routine that will start the journal transactions.

For our application, we need to create the invoice document and make sure that when posted, it updates our sub administration.

Invoice document

The sales invoice documents in Microsoft Dynamics NAV are stored in the Sales Header (36) and Sales Line (37) tables. We will create a report that will combine the outstanding reservation entries into invoices allowing the user to filter on a specific entry or any other field value in the squash ledger entry table.

Reports in Microsoft Dynamics NAV are not just for printing documents; we can also use its dataset capabilities to start batch jobs.

To enable this, our batch job needs to have a special...

Navigate

We have now covered everything that is necessary for our squash court application to run but there is one special function of Microsoft Dynamics NAV that needs changing when we add new documents and ledger entries: the Navigate function.

The functionality was already discussed in Chapter 1, Introduction to Microsoft Dynamics NAV. The object is a single page (344) in the application that requires two changes.

FindRecords

The first function we change is FindRecords. This browses through the database finding all possible combinations of document no. and posting date.

FindRecords()

...

// Squash Ledger Entries

IF SquashLedgEntry.READPERMISSION THEN BEGIN

SquashLedgEntry.RESET;

SquashLedgEntry.SETCURRENTKEY("Document No.",

"Posting Date");

SquashLedgEntry.SETFILTER("Document No.",DocNoFilter);

SquashLedgEntry.SETFILTER("Posting Date",PostingDateFilter);

InsertIntoDocEntry(

DATABASE...

Summary

In this chapter, we created our own vertical add-on application for Microsoft Dynamics NAV. We used similar data model and posting structures and reused parts of the standard application where appropriate but never wrongly used standard features.

We saw how to reverse engineer Microsoft Dynamics NAV code in order to find out what similar standard functionality to copy, paste, and change for our application.

We also found out how a journal and document posting code unit works and how to structure using Test near, Test far, Do it, and Clean up.

In the next chapter, we will explore the financial functionality of Microsoft Dynamics NAV and even make some changes to this part of the application.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Assess and overcome various challenges while implementing the Microsoft NAV ERP system in your business
  • Turn an end-to-end structure of your own into Microsoft Dynamics NAV with this practical guide
  • Customize Dynamics NAV to suit the different aspects of a business

Description

This book is a focused tutorial on Microsoft Dynamics NAV application development to help you develop complete applications and not just application outlines. This hands-on guide starts off by introducing the supply chain that you will be using throughout the book. You will then implement the Microsoft Dynamics NAV ERP suite and learn to set it up and customize it for various industries. You will learn how to customize Dynamics NAV to suit the different aspects of a business such as financial management, relationship management, production, jobs, trade, storage, logistics, and so on. The book will take you through these Microsoft-designed application features and show you how to customize and extend them safely. Therefore, by the end of this book, you will be able to create a structure of your own in Microsoft Dynamics NAV.

Who is this book for?

If you are a NAV consultant and developer or a designer of business applications, you will benefit most from this book. This book assumes that you have a basic understanding of business management systems and application development with working knowledge of Microsoft Dynamics NAV.

What you will learn

  • Set up and customize the Dynamics NAV ERP suite for various industries
  • Study dozens of design patterns used in standard applications
  • Customize Microsoft s application features and extend them safely
  • Use blueprints, design patterns, and application objects for Equipment Reservations and Transport Management
  • Master the fundamentals of application design and learn about B2B and B2C interfacing
  • Design applications that strike a balance between total cost of ownership and functionality
  • Extend your core applications using interfaces with flat file, CSV, XMLPorts, ADO, EDIFACT, and web services

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 16, 2014
Length: 504 pages
Edition : 2nd
Language : English
ISBN-13 : 9781782170372
Vendor :
Microsoft
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want

Product Details

Publication date : Sep 16, 2014
Length: 504 pages
Edition : 2nd
Language : English
ISBN-13 : 9781782170372
Vendor :
Microsoft
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 141.97
Getting Started with Dynamics NAV 2013 Application Development
€37.99
Programming Microsoft Dynamics NAV 2013
€53.99
Microsoft Dynamics NAV 2013 Application Design
€49.99
Total 141.97 Stars icon

Table of Contents

11 Chapters
Chapter 1: Introduction to Microsoft Dynamics NAV Chevron down icon Chevron up icon
Chapter 2: A Sample Application Chevron down icon Chevron up icon
Chapter 3: Financial Management Chevron down icon Chevron up icon
Chapter 4: Relationship Management Chevron down icon Chevron up icon
Chapter 5: Production Chevron down icon Chevron up icon
Chapter 6: Trade Chevron down icon Chevron up icon
Chapter 7: Storage and Logistics Chevron down icon Chevron up icon
Chapter 8: Consulting Chevron down icon Chevron up icon
Chapter 9: Interfacing Chevron down icon Chevron up icon
Chapter 10: Application Design Chevron down icon Chevron up icon
Installation Guide Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7
(3 Ratings)
5 star 66.7%
4 star 33.3%
3 star 0%
2 star 0%
1 star 0%
Alain Krikilion Jan 11, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Maybe you remember Marks book "Microsoft Dynamics NAV 2009 Application Design". Well, this book has the same base but it is updated to NAV 2013 R2 (and not just NAV 2013 like the name of the book implies).This book is for everyone who develops (including analysts, project leaders, testers, …) in NAV. It gives an overview with some examples of all modules in NAV and also some development to add functionality.Even after working more than 10 years with NAV and reading the previous book, I am still surprised Mark is able to show so clearly how easy it is to add functionality in NAV ... And to do it in a correct way!So why buying this book if you already have the MS NAV 2009 Application Design? • More Partner Ready Software and NAV Design Patterns in it (after all they didn't exist in 2010 when Mark wrote the MS NAV 2009 Application Design). • I have to admit that there is a lot of things the same as in the old book but when I put the books together to have an idea of the differences, I found the MS NAV 2009 Application Design book just plain old. The MS NAV 2013 Application Design is NEW! • A lot of changes in chapter 9 Interfacing. When I confronted the 2 books, I was surprised to see how much extra possibilities NAV has for interfacing (even if I already used most of them).
Amazon Verified review Amazon
Mike Jan 05, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Mark has done wonderful job in this book and added everything which a beginner, professional needed.I have gone through book and found valuable information on it. Information and example given by authors are really catchy points.This is not a standard book about NAV and its features, this is a book with a clear concept in mind: help people to solve problems with NAV and write code in an elegant and efficient way, respecting standards and patterns.If you're a serious NAV developers, this is the book for you!
Amazon Verified review Amazon
S. Demiliani Dec 04, 2014
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
If you're a serious NAV developer and you need to understand the best practice on how to handle a NAV project as a developer perspective, this is the right book for you. Recommended!
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.