Chapter 1: X++ Unit Test Framework
Chapter 2: Working with Data
Chapter 3: Classes
Chapter 4: Forms
Chapter 5: Visual Studio Integration
Chapter 6: Workflow
Lesson 4 : Parm Tables
When sales orders, purchase orders, or production orders are updated to a new status, Microsoft Dynamics AX uses Parm tables to store what will be updated. This allows the user to view and modify what will be updated without affecting the original order. It also enables the update to be processed by the batch system.
The user can view and edit the Parm tables in the SalesEditLines or
PurchEditLines forms. In the previous figure, the SalesParmLine table appears on the Lines tab, and the SalesParmTable appears on the SalesOrders tab.
To use the Parm tables, a ParmId is created. This is a sequential number taken from the System ID number sequence set up on the Company Info table. The ParmId ensures the tables are linked correctly using a unique identifier for each update – one order can be updated multiple times.
The table records are then created using data from the appropriate tables. For example, PurchParmTable is initialized using data from PurchTable, and PurchParmLine is initialized using data from PurchLine.