PCRuntimeConfiguratorValidate.validateModifiedExpressionConstraint Method [AX 2012]

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

public void validateModifiedExpressionConstraint(
    PCProductConfigurationModel _productConfigurationModel, 
    PCExpressionConstraintRecId _expressionConstraintRecId, 
    PCConstraintExpression _expression)

Run On

Client

Parameters

_productConfigurationModel
Type: PCProductConfigurationModel Table
The product configuration model that contains the constraint.
_expressionConstraintRecId
Type: PCExpressionConstraintRecId Extended Data Type
The specified constraint to validate.
_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: