Template - addLocalParameter
Template - addLocalParameter
Description :
This command adds a local property to a template. It finds the template by group name and template name as two separate arguments. The command also takes the new property name, description, type, default value and editable and required booleans as arguments. For a complete syntax of the type strings, see the PropertyClass addProperty command.
Return type : DBKey
Command Input :
Variable Name |
Variable Type |
Description |
---|---|---|
templateName |
String |
Name of the template. |
groupName |
String |
Name of the group. |
propertyName |
String |
Name of the parameter. |
propertyDescription |
String |
A description of the parameter. |
propertyType |
String |
The fully qualified data type of the parameter. |
editable |
Boolean |
True if the property is editable, false otherwise. |
required |
Boolean |
True if the property is required, false otherwise. |
defaultValueString |
String |
The default value to be set. |
Example
This example shows how to add a string parameter with a default value to a template. This example adds a parameter called "install_dir" to an apache template.
Script
Template addLocalParameter Apache /Applications/WebServers/Unix install_dir "the install directory for apache servers" Primitive:/String true false "/usr/bin"
Comments
Log in or register to comment.