addAttributeTypeSelectionValueInteger

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 an integer value to the list, addAttributeTypeSelectionValueNumber to add a floating point value, or addAttributeTypeSelectionValue for a string.

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.

Arguments

Name Type Description
skey string

id_attr_type string

The ID of the attribute type.

the_value integer

The value to add to the selection list.

is_default boolean

If true, this value becomes the default selection for the list.

Return

The addAttributeTypeSelectionValueInteger method returns the ID of the newly added value (a string).

Exceptions

The addAttributeTypeSelectionValueInteger method may report the following exceptions: