Implementations
The Select Pattern can be implemented in tables that are used in transactions to create history; or in any scenario where the OnRun
trigger of a Codeunit is used, and extra parameters need to be passed to the code in the Codeunit.
Note
Alternatively, the Codeunit can have Global variables that can be set via functions prior to calling the Codeunit. Microsoft uses a mix of both solutions. The Select Pattern is an elegant way, since it requires less coding than using functions. An example of a function can be found in Codeunit 80, Sales-Post. This has a function called SetPostingDate
that is called from reports 296, Batch Post Sales Orders and 297, Batch Post Sales Invoices.
Examples
These objects contain examples of the following Pattern:
Table ID |
Field ID |
Type |
Description |
---|---|---|---|
36 |
57 |
Boolean |
Ship |
36 |
58 |
Boolean |
Invoice |