Common class attributes you can define in Class Manager
You can view, modify, and delete existing attributes of a class. However, you can modify or delete only attributes that are unique to a class. You cannot modify or delete attributes inherited from a superclass.
Attributes of the BMC_Patch class
When creating an attribute of the Selection data type, you can replace the custom enumeration default values with values that start at 0 and increment by 1. This enables you to leave any numbers that are unused between the values you select. The benefit is that you can later add a selection between two other values without changing the enumeration of the existing selections.
Common attribute fields
You can define common attributes for every attribute data type.
The following table lists the fields that appear in the Attribute dialog box and describes how you should enter information for those fields when creating an attribute. Fields marked with an asterisk are required.
Field | Description |
---|---|
Data Type | The type of information that the attribute contains. After you select a data type, data type characteristics fields specific to your selection appear on the right of the Data Type field. |
Attribute Name | A descriptive name of up to 80 alphanumeric characters (including underscores) that is indicative of the function. |
Namespace | Namespace for the attribute. Select or enter a namespace if this attribute should be in a different namespace than the class that contains it. To use the class namespace, leave this field blank. |
Field ID | ID of the field created for the attribute on the class form. It is an integer that must be greater than 536870911 but less than 2147483647, which is the default maximum value for field IDs. If you want the system to generate an ID, leave this field blank. |
Entry Mode | Mode that determines whether the attribute must contain a value for each instance and whether its value is stored in the database. It can be any one of these options:
|
Audit Option | An option that determines whether changes to this attribute value trigger an audit:
|
Attribute Type | The type of the attribute, either regular or core. You can create only regular attributes. |
Custom Properties | Additional information about the attribute. You must enter the custom properties in the following format: { “fieldID1”: <value1>} For example, { "100050": 1, "400090": "PrimaryCapability" } To remove an existing property, for example to remove the property for 400090, change the list to: { "100050": 1, "400090": "" } |
Primary Key | A read-only value that indicates whether the attribute is a primary key for an index of this class in the database. |
Hidden | An option that determines whether the attribute is hidden on the class form. |
Data Type attribute fields
Some fields in the Attribute dialog box appear only when you select certain values for the Data Type field.
The following table describes the fields on the Attribute dialog box that appear according to the data type selected for the attribute. All these fields are optional.
Field | Description | Applicable data type |
---|---|---|
Allowable Currency Types | List of currency types allowed. | Currency |
Attachment Pool | Name of the attachment pool to which the attachment field belongs. | Attachment Field |
Default Value | The default attribute value that is saved for the attribute when you create a new instance and do not enter a value. Default Value can be a static value or a keyword from the field menu. |
|
Enum Type | Specifies the way in which selection-field options are ordered in the database.
| Selection |
Functional Currency Types | List of currency types to which the value can be converted when it is saved to the database. | Currency |
ID Values | If you selected a custom Enum Type for a selection field, enter the IDs for each of the values. Note: For out-of-the-box attributes, BMC has reserved a range of enum IDs from 0 to 10,000. All new customizations must be done by using IDs starting from 10,001. | Selection |
Input Length | Determines the maximum size of the attachment, measured in bytes. A value of 0 defaults to the maximum allowed by the database. | Attachment Field |
List Format | If you want the attribute to contain a list of character values, enter the maximum number of elements in the list in the format L<max>. If you want the attribute to contain only one value, leave this field empty. For example, enter L4 to specify a maximum of four list elements. This maximum is enforced by the BMC Atrium CMDB API. When creating instances of this class, delimit list elements in this attribute with a semicolon (; ). To include a semicolon in a list element, place a backslash (\) in front of it. A semicolon after the last element is optional. For example, to create a list containing a, b, \;, and d, enter the string | Character |
Max | Maximum value allowed in this field. For Currency and Decimal types, the maximum can be any amount. For the Integer type, the maximum can be as high as 2147483647. For the Real type, the maximum can be as high as 1.845e+019. |
|
Max Length | Maximum number of characters that a user can enter in the attribute. The default is 255. | Character |
Menu Name | BMC Remedy AR System menu can be attached to the attribute to enable you to select a value. The menu must be created in Base Development mode. | Character |
Menu Style | Select Append to append menu selections to the attribute's existing value, or overwrite an existing value with each menu selection. | Character |
Min | Minimum value allowed in this field. For Currency and Decimal types, the minimum can be any amount. For the Integer type, the minimum can be as low as -2147483647. For the Real type, the minimum can be as low as -1.845e+019. |
|
Pattern | Select a pattern if you want to allow only certain types of values in the attribute, such as alphabetic characters or selections from an attached menu. | Character |
Precision | Number of decimal places to be displayed. |
|
QBE Match | Select the type of Query By Example (QBE) matching to be used when querying on this attribute from the class form. The default is Anywhere.
| Character |
Values | Values that appear in the selection field. | Selection |
Related topics
BMC Remedy AR System Form views
Namespaces and partitioning the data model
BMC Remedy AR System Field types
BMC Remedy AR System Data fields
Creating or modifying classes by using Class Manager
Comments
Log in or register to comment.