PdsCWValidation::fieldMapFromContainers Method [AX 2012]
Creates the map used by the PdsCWValidation class from a container type.
This method is for the convenience of the developers as it is frequently easier to specify a container structure than it is to create and fill a Map. The passed container must contain a container for each field pair to be handled by a catch weight validation class. Each of these field pair containers must have the field IDs of the following fields in exactly that sequence:
|
Catch Weight Quantity |
A catch weight quantity field |
|
Inventory Quantity |
An inventory quantity field |
|
Allow Edit |
A Boolean value indicating whether the edit of the inventory quantity should be allowed; optional. |
|
Unit Id |
The unit in which the regular quantity field should be maintained; optional. |