Share via


BiProjectValidationEngine.registerValidationClasses Method [AX 2012]

Use this method to add new custom validation classes that extend from BiProjectValidationBase to the validation process.

Syntax

public void registerValidationClasses()

Run On

Called

Remarks

If a custom validation is to be performed when generating a SQL ServerAnalysis Services project then the developer should:

  1. Create a new class and have that class extend from the BiProjectValidationBase class.

  2. Add the appropriate validation logic to the class created in the first step.

  3. Modify the registerValidationClasses method of this class by adding a new call to register the new class as a validation class so that the engine makes the necessary calls at runtime so that the validation logic is executed. This is performed by adding the following line to the registerValidationClasses method: this.registerValidator(new customProjectValidator()); where customProjectValidator is the name of the class that is created in step 1.

See Also

Reference

BiProjectValidationEngine Class