ProjStatistic.pack Method [AX 2012]

Serializes the current instance of the ProjStatistic class.

public container pack()

Run On

Called

Return Value

Type: container
A container that contains the current instance of the ProjStatistic class.

All variables that are required to re-instantiate the class after constructing it are packed.

The CurrentList macro declared in the ProjStatistic.classDeclaration method is used to list the variables to pack. The CurrentVersion macro holds a version number. This number refers to the version of the variable list.

When a new variable is introduced you should typically do the following:

  1. Increment the version number in the version macro.

  2. Copy the current list to the ProjStatistic.unpack method.

  3. Add the new variable to the bottom of the list.

  4. Recompile the class.

When the RunBase.isSwappingPrompt method returns true you might have to pack some prompt-related variablesl.

Community Additions

ADD
Show: