InventCostStop.pack Method [AX 2012]
Packs the RunBase class.
Syntax
public container pack()
Run On
Called
Return Value
Type: container
A container of packed values.
Remarks
All variables that are required to reinitialize the class after it is constructed must be packed.
Typically, a macro that is declared in the classDeclaration method 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, you should typically follow these steps:
Increment the version number in the version macro.
Copy the current list to the RunBase.unpack method.
Add the new variable to the bottom of the list.
Recompile the class.
When the RunBase.isSwappingPrompt method returns a value of true, you may have to pack some prompt-related variables.
Examples
abstract public container pack()
{
return [#CurrentVersion,#CurrentList];
}