PCRuntimeConfiguratorValidate.validateConstraint Method [AX 2012]

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

public void validateConstraint(PCProductConfigurationModel _productConfigurationModel, PCConstraint _constraint)

Run On

Client

Parameters

_productConfigurationModel
Type: PCProductConfigurationModel Table
The product configuration model that contains the constraint.
_constraint
Type: PCConstraint Table
The specified constraint to validate.

ExceptionCondition
Error

The _productConfigurationModel and _constraint parameters are null or undefined.

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

Community Additions

ADD
Show: