InterObject communication
There are several ways for communicating between objects during NAV processing.
Communication via data
The most widely used and simplest communication method is through data tables. For example, the No. Series table is the central control for all document numbers. Each object that assigns numbers to a document (for example, Order, Invoice, Shipment, and so on) uses Codeunit 396, NoSeriesManagement, to access the No. Series table for the next number to use, and then update the No. Series table so that the next object needing to assign a number to the same type of document will have the updated information.
Communication through function parameters
When an object calls a function in another object, information is generally passed through the calling and return parameters. The calling and return parameter specifications were defined when the function was originally developed. The generic syntax for a function call is as follows:
[ReturnValue := ] FunctionName ( [ Parameter1...