BOMRouteApprove.pack Method [AX 2012]
Packs the RunBase class.
Syntax
public container pack()
Run On
Called
Return Value
Type: container
The packed class, as a container.
Remarks
All variables that you must have to re-instantiate the class after you construct it must be packed. Typically, a macro declared 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 variable list. When a new variable is introduced you should typically do the following:
Increment the version number 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 true you may have to pack some prompt-related variables also.