poIAdvancedQuery SetQueryLogic

Sets the query logic to the advanced query.

Syntax

advancedQuery_handle SetQueryLogic rule

Application

HyperView Tcl Modify

Description

This command sets the rule to the advanced query.

Inputs

rule
The rule ID in the string format.

Example

To set the query logic to the advanced query:
hwi OpenStack
hwi GetActiveClientHandle client
set ruleID [client AddQueryRule extreme]
client GetQueryRuleHandle rule_handle $ruleID
rule_handle SetExtreme "TopN 3"
set advQueryID [client AddAdvancedQuery]
client GetAdvancedQueryHandle advancedQuery_handle $advQueryID
advancedQuery_handle AddSimulations "current" "current"
advancedQuery_handle SetQuery "entity.id entity.value"
advancedQuery_handle SetQueryLogic "[rule_handle GetID]" 
hwi CloseStack

Errors

This command returns HW_Error, if there is no rule ID available in the advanced query.