Enumerations
Enumerations
There are two types of enumerations: Custom and Standard.
Custom enumerations are defined by a database administrator, and can be used as the base type for a custom attribute. Custom enumerations can only be managed at ciiva.com when a database administrator is logged in under the “Database Management” tab.
Enumeration Settings
Standard enumerations are included in every component database. Values for standard enumerations are defined in the Settings window under the Enumerations tab.
The following five standard enumerations are defined:
- Approval Status
- Component Classes
- Manufacturers
- Product Status
- Suppliers
A popup menu is shown when the right mouse button is clicked on a selected enumeration value or anywhere in the enumeration value window. Menu commands are configured according to whether an enumeration object is selected or not.
To show or hide deleted enumeration values, click the Show Deletions or Hide Deletions option, which are mutually exclusive and will toggle based on whether deletions are currently visible.
Managing Enumeration Values
To create a new enumeration value, click the Create option. A dialog box will be shown prompting for a new enumeration value. You cannot create duplicate enumeration values, and enumeration values are case insensitive. You cannot create enumeration values which have been previously deleted. In this case, you must enable Show Deletions and undelete the enumeration value.
To set a default enumeration value, click the Set as Default option. Only one enumeration value can be set as the default. Default values are used when creating objects such as new components or product versions that contain attributes which use the enumeration as their base type. For example, setting the default value for the component class will cause that value to be automatically set in the base component dialog when creating a new base component.
To edit an enumeration value, click the Edit option. Enumeration values can be changed, as long as the value they are being changed to is not already in use.
It should also be noted that if that enumeration value is in use anywhere, then attributes currently set to that value will not be automatically updated. For example, if there is a base component with the value “FET” for the component class, and “FET” is subsequently changed to “Transistor”, then the base component will still contain the value “FET”.
Such attribute values must be manually updated to use the new enumeration value. In this example, while the value for the component class will still be set to “FET”, this value will no longer be available in the enumeration value list, and instead will have been replaced by “Transistor”.
To delete an enumeration value, click the Delete option. Enumeration values can be deleted when they are in use. To restore an enumeration value, click the Restore option. This option is only available when an enumeration that is deleted is selected.