PCRuntimeConfiguratorValidate.validateModifiedPriceExpression Method [AX 2012]

Validates the price expression definition by using the solver and XML schema validations.

public void validateModifiedPriceExpression(
    PCProductConfigurationModel _productConfigurationModel, 
    Common _record, 
    FieldId _fieldId, 
    PCPriceExpression _expression, 
   [PCRuntimePriceModelInstance _runtimePriceModelInstance])

Run On

Client

Parameters

_productConfigurationModel
Type: PCProductConfigurationModel Table
The product configuration model that contains the constraint.
_record
Type: Common Table
The specified price expression to validate.
_fieldId
Type: FieldId Extended Data Type
The Id of the field in the record that contains the expression
_expression
Type: PCPriceExpression Extended Data Type
The new expression to validate
_runtimePriceModelInstance
Type: PCRuntimePriceModelInstance Class
Which of the price models for the constraint model should be used.

ExceptionCondition
Error

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

Since the validation will focus on the specified price condition, validation will not fail because of other invalid expressions or problems in the price expression.

Community Additions

ADD
Show: