Function models to review and use

It is very helpful when creating new code to have a model that works which we can study (or clone). This is especially true in NAV, where there is little or no development documentation available for many of the different functions we would like to use. One of the more challenging aspects of learning to develop in the NAV environment is learning how to handle issues in the NAV way. Learning the NAV way is very beneficial, because then our code works better, is easier to maintain and easier to upgrade. There is no better place to learn the strengths and subtle features of the product than to study the code written by the developers who are part of the inner circle of NAV creation.

If there is a choice, don't add custom functions to the standard NAV Codeunits. Well segregated customizations in clearly identified custom objects make both maintenance and upgrades easier. When we build functions modeled on NAV functions, the new code should be in a customer licensed codeunit.

A list of objects follows that contain functions we may find useful to use in our code or as models. We find these useful to study how it's done in NAV ("it" obviously varies, depending on the function's purpose):

  • Codeunit 1 - Application Management: This is a library of utility functions widely used in the system
  • Codeunits 11, 12, 13, 21, 22, 23, 80, 81, 82, 90, 91, and 92: These are the Posting sequences for Sales, Purchases, General Ledger, Item Ledger; these control the posting of journal data into the various ledgers
  • Codeunit 228 - Test Report-Print: Functions for printing Test Reports for user review prior to Posting data
  • Codeunit 229 - Print Documents: Functions for printing Document formatted reports
  • Codeunits 397 and 400 - Mail: Functions for interfacing with Outlook and SMTP mail
  • Codeunit 408 - Dimension Management: Don't write your own; use these
  • Codeunit 419 - File Management: Functions including BLOB tasks, file uploading, and downloading between server and client systems.
  • Codeunits 802: Online Map interfacing
  • Codeunit 5054- Word Management: Interfaces to Microsoft Word
  • Codeunit 5063 - Archive Management: Storing copies of processed documents
  • Codeunits 5300 through 5313: More Outlook interfacing
  • Codeunits 5813 through 5819: Undo functions
  • Codeunit 6224: XML DOM Management for XML structure handling
  • Table 330 - Currency Exchange Rate: Contains some of the key currency conversion functions
  • Table 370 - Excel Buffer: Excel interfacing
  • Page 344 - Navigate: Home of the unique and powerful Navigate feature
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.116.159