poIQueryExpressionRule SetExpression

Sets the query expression to the advanced query.

Syntax

rule_handle SetExpression queryExpression

Application

HyperView Tcl Modify

Description

This command is used to set the expression query to the advanced query.

Inputs

queryExpression
Accepts only the following rule types: ">= ", "<= ", or "range".

Example

To set the expression query to the advanced query:
hwi OpenStack
hwi GetActiveClientHandle client
set ruleID [client AddQueryRule expression]
client GetQueryRuleHandle rule_handle $ruleID
rule_handle SetExpression ">= 100"
set advQueryID [client AddAdvancedQuery]
client GetAdvancedQueryHandle advancedQuery_handle $advQueryID
advancedQuery_handle AddSimulations “current” “current”
advancedQuery_handle SetQueryRule "[rule_handle GetID]" 
advancedQuery_handle SetQuery “entity.id entity.value”
advancedQuery_handle GetValueList
hwi CloseStack

Errors

This command returns HW_Error, if an invalid string is passed to the query expression.