|Bookshelf Home | Contents | Index | PDF|
The Constrain Attribute Value template sets the value of an attribute so that it cannot be overridden by the user during a configuration session. If you write a rule that sets the attribute equal to a value, this has the same effect as setting the attribute value and saving the record in Product Administration > More Info > Dynamic Attributes. By setting the comparison operator to other than equals (=), you can constrain the allowable ranges for numeric attribute values. For example you could write a rule that constrains an attribute value to > 100. In this fashion you can use the Constrain Attribute Value template to validate user input for range-of-values attribute domains.
Depending on the data type of the attribute domain, the attribute value can be set to one of the LOV choices, to the value of a linked item, the value of another item's attribute, to a string, or to a number.
You can use this template to restrict attribute values based on conditions that occur during a configuration session. For example, you could write a rule that restricts one attribute's value if the user chooses a specified value for another attribute.
This template cannot be used to constrain the attributes of customizable products that are components in a customizable product. For example, customizable product CP1 has as one of its components customizable product CP2. You cannot use this template to constrain the values of attributes in CP2.
|Product Administration Guide|