SmartDepotGroup - resetConditions
SmartDepotGroup - resetConditions
Description :
This command clears all old conditions and adds a new condition to a smart depot group. For a complete list of the operator strings, see the SmartServerGroup : addCondition command.
This command returns a handle to the group.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
groupName | String | Fully qualified name to the smart group. |
propClassName | String | Property Class Name to be used in the smart group condition. |
propName | String | Property Name to be used in the smart group condition. |
operator | String | Operator string to be used in the smart group condition. |
propValue | String | Property value to be used in the smart group condition. |
Example
The following example shows how to reset conditions on a smart depot group whose name is /root/allNSH. The new condition for the group is to select all NSH scripts whose descriptions contain "nsh".
Script
SmartDepotGroup resetConditions /root/allNSH "Class://SystemObject/Depot Object/NSH Script" "Description" "contains" "nsh"