PCRuntimeConfiguratorValidate.validateModifiedCalculation Method [AX 2012]

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

public void validateModifiedCalculation(
    PCProductConfigurationModel _productConfigurationModel, 
    Common _record, 
    FieldId _fieldId, 
    PCCalculationExpression _expression)

Run On

Client

Parameters

_productConfigurationModel
Type: PCProductConfigurationModel Table
The product configuration model that contains the constraint.
_record
Type: Common Table
The specified calculation to validate.
_fieldId
Type: FieldId Extended Data Type
The Id of the field in the record that contains the expression
_expression
Type: PCCalculationExpression 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 calculation, validation will not fail because of other invalid expressions.

Community Additions

ADD
Show: