PropertyClass - addStringEnumProperty_1
PropertyClass - addStringEnumProperty
Description :
This command adds a new string enumeration property to a specified class. If such a property already exists, the command fails.
Property names or values with spaces must be wrapped with quotes and escaped with a backslash, using a format like "\"prop name1\"".
Return type : void
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
fullyQualifiedClassName | String | Fully qualified name of the class to which you want to add a property. |
propertyName | String | Name of the property. |
description | String | Short description of the property. |
isEditable | Boolean | Indicates whether or not the property is editable. |
isRequired | Boolean | Indicates whether or not the property is required. |
usedInReports | Boolean | Indicates whether or not the property is used in reports. |
enumDataNames | String | Names of the enumeration data. |
enumDataValues | String | Values of the enumeration data. |
defaultValue | String | The default value for the property. |
Example
The following example adds a new string enumeration property to the Apache class. The new enumeration property is called PROP1 and it contains a list of names/value pairs. The new enumeration property is used in reports.
Script
PropertyClass addStringEnumProperty Class://SystemObject/Apache PROP_1 "desc" true false true "aaa,\"b b b\"" "mmm,nnn" "mmm"
Comments
Log in or register to comment.