Adds a selection value to an enumerated attribute type. Attributes with enumerated types are displayed in the user interface as a drop-down list. Use this method to add a string value to the list, addAttributeTypeSelectionValueInteger to add an integer, or addAttributeTypeSelectionValueNumber for a floating point value.
Each value is associated internally with a unique ID which will be returned by this method when the value is added successfully. This ID is used by other selection list methods to manipulate individual values.
| Name | Type | Description |
|---|---|---|
| skey | string | |
| id_attr_type | string |
The ID of the attribute type. |
| the_value | string |
The value to add to the selection list. |
| is_default | boolean |
If true, this value becomes the default selection for the list. |
The addAttributeTypeSelectionValue method returns the ID of the newly added value (a string).
The addAttributeTypeSelectionValue method may report the following exceptions:
© Copyright 1997-2007 Journyx