InventCostHelp.pack Method [AX 2012]
Serializes the current instance of the InventCostHelp class.
All variables that you must re-instantiate the class after constructing it must be packed.
Typically, a macro declared in the classDeclaration is used to list the variables to be packed. Another macro holds a version number that refers to the version of the variable list.
When a new variable is introduced, follow these steps:
-
Increment the version number in the version macro.
-
Copy the current list to the unpack method (see the description there).
-
Add the new variable to the bottom of the list.
-
Recompile the class.
When the isSwappingPrompt method returns true, you may also have to pack some prompt-related variables.