|
Creating an Enumerated List
To Create a Custom Enumerated List Attribute
2. Select the Customization Center view.
3. Click Lock for Customization. The APM icon in your Task bar now has a key on it:Creating the Enum Type
Tip: You can review the list of existing enum types in the Custom Enum Types tab. To see all available enum types, select the Custom and APM enum types from the dropdown.
5.
6. In the Enum type name box enter a name for the list. APM automatically adds the prefix “ec” to your enum type name.
7. Select a Scoping option. Class-scoped enum types are only available to be used in the class within which they were created. Globally-scoped enum types may be used in any custom class.
8. Add the options (or values) to the list type. In the Enum values section, click New. The Enum Value dialog appears.
9. In the Description box enter the name of the value. This is the description that will appear in the user interface.
10. You can enter a Value and a Sequence number. The sequence number determines the order in which the values are listed in the user interface.
11. Click OK.
12.
13. Click OK on the Enum Type dialog.Adding an Enum Attribute to the Class
14.
15. In the Attribute name box, enter the name of the attribute.
16.
17. In the Enum type list, select the enum type that you just created.
18. If you want one of the values to be the default value for the attribute, enter the enum value name in the Default value box (for example, “evValue1”).
19. Click OK to save the attribute.
20.Adding the Enum Attribute to a View
25. In the Customization Center, click Unlock System. The system should regenerate schema and cache files. This may take a few minutes.Note: If the system does not automatically generate the schema and cache, click Generate and then Schema, and Generate and then Cache Files in the Customization Center.Changing the Enum Type
2. To remove the enum list, right-click on the enum attribute on the layout panel and click Delete. Be sure to delete the corresponding enum label as well.
3. In the Toolbox, click the Attributes tab and the expander icon. Locate the enum attribute that has the format that you want. For example, select the RadioGroup format.
6. In the Customization Center, click Unlock System. The system should regenerate schema and cache files.If the system does not automatically generate the schema and cache, click Generate and then Schema, and Generate and then Cache Files in the Customization Center.