ProdMultiHistoricalCost.pack Method [AX 2012]
Serializes the current instance of the ProdMultiHistoricalCost class.
All variables that are required to re-initialize the class after construction must be packed. Normally, a macro in the class declaration is used to list the variables to pack. Another macro holds a version number. This number refers to the version of the variable list. When a new variable is introduced, follow these steps:
-
Increment the version number that is in the version macro.
-
Copy the current list to the unpack method.
-
Add the new variable to the bottom of the list.
-
Recompile the class.
When the isSwappingPrompt method returns a value of true, you must pack some prompt-related variables.