PCRuntimeConfiguratorValidate.validateModifiedExpressionCondition Method [AX 2012]

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

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

Run On

Client

Parameters

_productConfigurationModel
Type: PCProductConfigurationModel Table
The product configuration model that contains the condition.
_record
Type: Common Table
The specified condition 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 condition, validation will not fail because of other invalid expressions.

Community Additions

ADD
Show: