PCRuntimeConfiguratorValidate.validateModifiedExpressionConstraintExt Method [AX 2012]

Validates the constraint definition by using the solver and XML schema validations.

public void validateModifiedExpressionConstraintExt(
    PCProductConfigurationModel _productConfigurationModel, 
    Common _record, 
    FieldId _fieldId, 
    PCConstraintExpression _expression)

Run On

Client

Parameters

_productConfigurationModel
Type: PCProductConfigurationModel Table
The product configuration model that contains the constraint.
_record
Type: Common Table
The specified constraint to validate.
_fieldId
Type: FieldId Extended Data Type
The Id of the field in the record that contains the expression.
_expression
Type: PCConstraintExpression Extended Data Type
The new expression to validate.

ExceptionCondition
Error

The _productConfigurationModel and _record.RecId parameters are null or undefined.

Since the validation will focus on the specified constraint, validation will not fail because of other invalid expressions.

Community Additions

ADD
Show: