Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Microsoft Dynamics NAV 2009 Application Design
Microsoft Dynamics NAV 2009 Application Design

Microsoft Dynamics NAV 2009 Application Design: Design and extend complete applications using Microsoft Dynamics NAV 2009

Arrow left icon
Profile Icon Mark Brummel Profile Icon Marije Brummel
Arrow right icon
$9.99 $39.99
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (4 Ratings)
eBook Jun 2010 496 pages 1st Edition
eBook
$9.99 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Mark Brummel Profile Icon Marije Brummel
Arrow right icon
$9.99 $39.99
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (4 Ratings)
eBook Jun 2010 496 pages 1st Edition
eBook
$9.99 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$9.99 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.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
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Microsoft Dynamics NAV 2009 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 a better understanding of how to reuse the framework of the Microsoft Dynamics NAV application. We will show how to reverse engineer the application and study its functionality by going into the application code.

For this example, some new and changed objects are required. The Appendix 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 and learn how it works, and...

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 it cannot be done it's a Gap, we can fill a gap by developing a solution or purchasing an add-on.

But 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 was 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 the 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 different...

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 our squash players administration we will 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 the 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 upright corner of the page as shown in the following screenshot:

This option can be useful for finding information about the fields...

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 use 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 umbrella data 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 be found...

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.
  • Jnl.-Post Batch: This codeunit loops through all journal lines in a journal batch and posts all the lines. There is a dialog.
  • Jnl.-Post: This is the codeunit that is called from the page. It calls the codeunit jnl.-post batch and takes care of some user messaging.
  • Jnl.-Post+Print: This is the codeunit that is called when you push post + print. It does the same as the jnl.-post codeunit but with the additional printing of a report defined in the journal template...

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, 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 property, ProcessingOnly (as shown in...

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. The object is a single page (344) in the application that requires two changes.

FindRecords

The first function we change is FindRecords. This browses though 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::"Squash Ledger Entry",0,
    SquashLedgEntry.TABLECAPTION...

Summary

In this chapter we created our own vertical add-on application for Microsoft Dynamics NAV. We have 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 learned how a journal and document posting codeunit 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

  • Learn how Dynamics NAV ERP suite is set up and customized for various industries
  • Integrate numerous parts of a company's operations including financial reporting, sales, order management, inventory, and forecasting
  • Develop complete applications and not just skeleton systems
  • Covers the design and implementation of two new add-on services: The Squash application and the Storage ' Logistics application
  • Also usable for previous versions such as 3.x, 4.0, and 5.0
  • Easy-to-read style, packed with hard-won practical advice
  • Real-world examples with step-by-step explanations

Description

Dynamics NAV 2009 is an Enterprise Resource Planning (ERP) software product from Microsoft that can be used for variety of business needs. It is part of the Microsoft Dynamics family, and intended to assist with finance, manufacturing, Customer Relationship Management, supply chains, analytics, and electronic commerce for small and medium-sized enterprises. This book is a focused tutorial on Microsoft Dynamics NAV application development, so you can develop complete applications and not just application outlines. It will show NAV developers how to create different kinds of applications. Different kinds of application are vital in different industries like fashion, automobile, retail, books (education), and other industries. It starts off by introducing the supply chain that you will be using throughout the book. You will implement the Microsoft Dynamics NAV ERP suite and learn how it is set up and customized for various industries. You will be able 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. Thus, 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 designer of business applications you will benefit most from this book. The book assumes that you have a basic understanding of business management systems, application development, with a working knowledge of Microsoft Dynamics NAV.

What you will learn

  • Implement Microsoft Dynamics NAV ERP suite with a sample industry application throughout the book
  • Set up Dynamics NAV and customize it for various industries including fashion, retail, and the automobile industry
  • Get to grips with key Dynamics NAV features such as Inventory Valuation, Item Tracking, and Reservations
  • Learn about B2B and B2C Interfacing and the fundamentals of Application Design
  • Learn and customize application features designed by Microsoft such as Financial Management, CRM, Manufacturing, Distribution / Wholesale, and Retail and extend them safely
  • Design your applications to have a good balance between cost of ownership and functionality
  • Analyze operation data based on sales demographics using Dynamics NAV CRM
  • Extend your core applications using interfaces such as Flatfile, CSV, XMLports, ADO, EDI standards, and web services

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jun 11, 2010
Length: 496 pages
Edition : 1st
Language : English
ISBN-13 : 9781849680974
Vendor :
Microsoft

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
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jun 11, 2010
Length: 496 pages
Edition : 1st
Language : English
ISBN-13 : 9781849680974
Vendor :
Microsoft

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.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
$199.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
$279.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 $ 180.97
Microsoft Dynamics NAV 2009 Programming Cookbook
$65.99
Microsoft Dynamics NAV 2009: Professional Reporting
$65.99
Microsoft Dynamics NAV 2009 Application Design
$48.99
Total $ 180.97 Stars icon
Banner background image

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
Thank you for buying Microsoft Dynamics NAV 2009 Application Design Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(4 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
Daniel Rimmelzwaan Jun 22, 2010
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I can absolutely recommend anybody that is involved in ANY role in application design in NAV to read this book. For consultants and developers I would even say that this book is an essential read. It gives you a clear idea of what is involved in analyzing requirements, designing solutions based on standard NAV functionality, and developing these solutions in a way that any NAV user will be able to work with custom functionality as if it were part of the base product.In my opinion this is in concept and execution the strongest book about NAV yet. It covers the standard application, it shows you how requirements can go beyond the standard, and how to bridge the gap between the two with custom development in a responsible way. Mark draws on real life experience, he covers real world pitfalls, and he shines a bright light on the entire process from defining the functional requirements to implementing custom development scenarios.
Amazon Verified review Amazon
Luc van Vugt Aug 20, 2010
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Fortunately for all Dynamics NAV pro's, some years ago, PACKT Publishing stepped into the hole in NAV documentation that had been there for years. With their last book, written by my fellow country man Mark Brummel, another and persistent gap was filled: the one left between Implementing Microsoft Dynamics NAV 2009 and Programming Microsoft Dynamics NAV 2009 . On this Mark has done a tremendous job "to cramp so much information in so little space ", as kriki ([...]) states it.With this review, however, I have not set out to give a complete review on all topics covered by the book, but simply want to highlight those that struck my eye.Clearly Mark's adage "Look, Learn, Love" applies to his book too. It undoubtedly adds a new perspective to NAV documentation which, even for celebrated NAV pros, present enough facts to make the book worthwhile reading. Mark's long running history with NAV is guarantee to that, even though, I have to confess, I had to get used to his English phrasing. But it surely did not stop me from reading!One of the things for which I will be frequently referring to this book in the future are the schemas. It has been a public secret for ages that one of NAV's major flaws in (technical) NAV documentation was the schematic representation of the various functional areas in NAV, i.e. the (almost) total absence of it. On this subject alone the books has filled a major gap.The numerous meaningful and very useful (code) examples should also be mentioned; to be learned from by any newbie developer, to be used by experienced ones.One of the few off-topics, and I honestly hadn't expect anything about it, nevertheless is "Testing". As Mark himself writes (p 443) "Testing is probably one of the most important but under-rated tasks of application design". But then only spends less than a page on it. Another gap to be filled by PACKT?Altogether it's great,
Amazon Verified review Amazon
Matt Traxinger Jun 22, 2010
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is easily the greatest introduction to the NAV system as a whole that I have seen yet. Mark does in 500 pages what the Microsoft manuals do in 5000...literally. He explains the important parts of every area of the system in concise and easy to understand chapters. The book provides enough details to learn the subject matter, but not so much that you find yourself scratching your head. Whether you are a developer or implementer, junior or senior level, customer or partner, you will have a better understanding of NAV after reading this book.
Amazon Verified review Amazon
Eric Wauters - waldo Jun 25, 2010
Full star icon Full star icon Full star icon Full star icon Full star icon 5
In my opinion: everything a consultant/developer should know! In my company, all technical, functional and sales consultants are mandatory to read this book. It gives a good understanding on what NAV is all about .. and that's what we want as "basic knowledge" in our company.
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.