Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Executes the validation of the quantities in a pair of quantity and catch-weight quantity fields.
Syntax
Note
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.
Exceptions
Exception | Condition |
---|---|
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. |
Remarks
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.