Share via


PdsCWValidation::createUnitFieldMap Method [AX 2012]

Creates a field map keyed on the fieldId of the unit.

Syntax

client server public static Map createUnitFieldMap(Map _fieldIds)

Run On

Called

Parameters

  • _fieldIds
    Type: Map Class
    The field map ordinarily used by the catch weight validation class.

Return Value

Type: Map Class
A field map based on the unit field.

Remarks

As the map ordinarily used by the catch weight validation class is keyed on the field ID of the catch weight field, finding a pair based on the field ID of the unit field would require a scan of the map.This method creates a field map that is keyed on the field ID of the unit field from a map that is keyed on the catch weight quantity field.

See Also

Reference

PdsCWValidation Class