Book Image

Microsoft Dynamics NAV 2013 Application Design - Second Edition

By : Marije Brummel
Book Image

Microsoft Dynamics NAV 2013 Application Design - Second Edition

By: Marije Brummel

Overview of this book

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.
Table of Contents (12 chapters)

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...