Template - addNewValuesToEnumProperty
Template - addNewValuesToEnumProperty
Description :
This command adds new values to a local property of an enumerated type in a specified Component Template. If this property does not exist, 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 |
---|---|---|
templateName | String | Name of the Component Template. |
groupName | String | Name of the group that contains the Component Template. |
propertyName | String | Name of the property. |
enumDataNames | String | Names of the enumeration data. |
enumDataValues | String | Values of the enumeration data. |
Example
The following example adds a list of names/values to a String enumeration local property named PROP_1 in the Component Template Apache in the folder /Applications/WebServers/Unix.
Script
Template addNewValuesToEnumProperty Apache /Applications/WebServers/Unix PROP_1 "ccc,\"d d d\"" "ppp,qqq"
Comments
Log in or register to comment.