Programming Microsoft® Dynamics™ NAV:
Create, modify, and maintain applications in NAV 5.0, the latest version of the ERP application formerly known as Navision
www.PACKTPUB.com  FREE ONLINE EDITION: Read full chapters online, download free samples from the book and more...
Book Contents Index > Chapter 8
Introduction
1: The Basic Ingredients
2: Tables
3: Fields
4: Forms
5: Reports
6: Introduction to C/SIDE and C/AL
7: Intermediate C/AL
8: Advanced NAV Development
9: Designing NAV Modifications

10: External Interfaces
11: Design to Succeed

Index

Latest Updates

Free Chapter:

Chapter 1: The Basic Ingredients [1.64 MB PDF]

Code Download

Contact us

 

Chapter 8: Advanced NAV Development

You think you know when you can learn, are more sure when you can write, even more when you can teach, but certain when you can program—Alan Perlis

Once you have achieved some mastery in the basics of C/AL programming, you are ready to start creating your own C/AL in NAV. But it is important that you get some familiarity with NAV C/AL code in the standard product first. You may recall the advice in a previous chapter that the new code you create should be visually and logically compatible with what already exists. If you think of your new code as a guest being hosted by the original system, you will be doing what any thoughtful guest does—fitting smoothly into the host's environment.

An equally important aspect of becoming familiar with the existing code is to increase the likelihood of being able to take advantage of its features and components to address some of your application requirements. There will be at least two groups of material that you can use.

One group is the Callable Functions that are used liberally throughout NAV. There is no documentation for most of those functions so you must either learn about them here or through doing your homework (i.e. studying NAV code). The second group includes the many code snippets that you can copy when you face a problem similar to something the NAV developers have already addressed.

The code snippets differ from the callable functions in two ways. Firstly, they are not structured as coherent and callable entities. Secondly, they may only apply to your problem as a model, code that must be modified to fit the situation (e.g. changing variable names, adding or removing constraints, etc.).

In this chapter, we will look at some of the code structures. We will also discuss techniques for working with the code, for debugging, and as a developer, taking advantage of the strengths of the C/SIDE and NAV environment. Following this chapter, you should have enough tools in your NAV toolkit to start doing basic development projects.

Chapter 8: Advanced NAV Development

  • Callable Functions
    • Codeunit 358Date Filter-Calc
    • Codeunit 359 – Period Form Management
    • Codeunit 365 – Format Address
    • Codeunit 396 – NoSeriesManagement
    • Codeunit 397 – Mail
    • Codeunit 408 – Dimension Management
    • Codeunit 412 – Common Dialog Management
  • Sampling of Function Models to Review
    • Codeunit 228 – Test Report-Print
    • Codeunit 229 – Print Documents
    • Some other Objects to Review
    • Management Codeunits
  • Documenting Modifications
  • Multi-Language
  • Multi-Currency
  • Code Analysis and Debugging Tools
    • Developer's Toolkit
      • Relations to Tables
      • Relations from Objects
      • Source Access
      • Where Used
      • Try it Out
    • Working in Exported Text Code
    • Using Navigate
      • Testing with Navigate
    • The Debugger
    • The Code Coverage Tool
    • Dialog Function Debugging Techniques
      • Debugging with MESSAGE
      • Debugging with CONFIRM
      • Debugging with DIALOG
      • Debugging with Text Output
      • Debugging with ERROR
  • Summary
   

 

Paperback 480 pages
Released: October 2007
ISBN: 1904811749
ISBN 13: 978-1-904811-74-9

     

 




View the book details
on PacktPub.com

 


 

  This website is owned and maintained by Packt Publishing Ltd, 2007. All rights reserved. Terms and Conditions