Bookshelf Home | Contents | Index | Search | PDF |
Product Administration Guide > Customizable Product Scripts >
SetAttribute Method
This method sets the value of an attribute for an item in the customizable product. This method can also be used to set attribute values for attributes of the customizable product. If multiple instances of an item have the same path, the eConfigurator engine randomly picks one instance and changes its attribute values.
Syntax
SetAttribute (ObjPath, AttName, AttVal) as Integer
For LOV domains, the AttValue must be one of the values in the list of values. Validation expressions defined for LOV domains are ignored.
For range of value domains, the AttValue must be within the domain defined by the validation expression.
Items
Can be used only for component products within the customizable product.
Returns
Returns 1 if setting the attribute was successful. Returns 0 if setting the attribute failed.
Example
For an example of using SetAttribute, see About Product Path.
Bookshelf Home | Contents | Index | Search | PDF |
Product Administration Guide Published: 23 June 2003 |