PropertyClass - getDefaultValue
PropertyClass - getDefaultValue
Description :
This command accepts a fully qualified class name and a property name as inputs and returns the default value of the property in the class. To get a nested property value, use the format: PROP1.PROP2.PROP3.
The only difference between getDefaulDisplayValue and getDefaultValue is the handling of enumerated data types. Running getDefaultValue against an enumeration displays the value. Running getDefaultDisplayValue against an enumeration displays the name.
Return type : String
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
fullyQualifiedClassName | String | Fully qualified name of the property class. |
propertyName | String | Name of the property. |
Examples :
Example
The following example gets the default value of a property called P1 in the class Class://SystemObject/C1.
Script
PropertyClass getDefaultValue Class://SystemObject/C1 P1
Example
The following example gets the default value of a property called PRIORITY* in the class Class://SystemObject/job. Note that the property name includes an asterisk * at the end.
Script
PropertyClass getDefaultValue Class://SystemObject/job PRIORITY*