PdsCWValidation.validateFieldInternal Method [AX 2012]

Executes the validation of the quantities in a pair of quantity and catch-weight quantity fields.

NoteNote

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.


  Microsoft Dynamics AX 2012 R3
          protected boolean validateFieldInternal(
            PdsCWQtyFieldPair _fieldPair, 
            PdsCatchWeightItem _cwItem, 
           [boolean _throwOnError])

  Microsoft Dynamics AX 2012 R2 (SYS)
          protected boolean validateFieldInternal(
            PdsCWQtyFieldPair _fieldPair, 
            PdsCatchWeightItem _cwItem, 
           [boolean _throwOnError])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          protected boolean validateFieldInternal(
            PdsCWQtyFieldPair _fieldPair, 
            PdsCatchWeightItem _cwItem, 
           [boolean _error])

  Microsoft Dynamics AX 2012 (FPK)
          protected boolean validateFieldInternal(
            PdsCWQtyFieldPair _fieldPair, 
            PdsCatchWeightItem _cwItem, 
           [boolean _error])

Run On

Called

Parameters

_fieldPair
Type: PdsCWQtyFieldPair Class
The field pair to validate.
_cwItem
Type: PdsCatchWeightItem Table
The ID of the catch weight item.
_throwOnError
Type: boolean
A Boolean value that indicates whether to throw an error if the validation fails; optional.

Return Value

Type: boolean
true if the values of the quantity pair are valid for the specified catch-weight item; otherwise, false.

ExceptionCondition
Error

Throws an exception, if the _error parameter is set and the signs between the quantities of the field pairs do not match.

-or-

Throws an exception, if the _error parameter is set and the inventory quantity does not fall into the range specified by the catch weight item record.

Indicates that the signs of the quantities in the pair are the same and the inventory quantity falls into the range specified by the catch weight item record.

Community Additions

ADD
Show: