Validation Rules

Estimated reading: 2 minutes 5 views

Introduction

Product Validation Rules allow to setup criterias that must be met in a Product configuration in order to be valid.

Although not yet implemented they would also allowwto make attributes visible, hidden, readonly or editable.

To set a validation rule for a Product Version you just have to go to the Product Validation Rules related list and created the rules that you need. The main fields you need to setup are the Validation Rule and the Error Message.

The Validation Rule

As usual, the rules are defined following the syntax of the [ Wattyo Rule Engine ]({{< relref “/docs/technical/rules” >}}).

The expression rule must evaluate to true in order to consider the configuration valid. Otherwise, if it’s false, the validation error would be shown.

You can use any of the existing out of the box functions or create your custom ones.

Custom Function

You can add any custom Function that you need trough [ Custom Fucntions Libraries ]({{< relref “/docs/technical/rules/implementation/customfunctionslibraries” >}}).

It’s important to note that the Context passed to functions called by the Validation Engine is a ConfigurationWrapper.Item object with the Item configuration details. So any function should expect the Context parameter to be of this type if it needs to use the Context.

Leave a Comment

       
Euphoria, forever till the end of times

Euphoria

Share this Doc

Validation Rules

Or copy link

CONTENTS