poIAdvancedQuery SetSearchOption
Sets the search options status to the advanced query.
Syntax
advancedQuery_handle SetSearchOption name state
Application
HyperView Tcl Modify
Description
This command is used to set the status of the search options for the advanced query. The
output will be calculated based on the search options, for example:
[SetSearchOption "simulation" true]
will result in the output being displayed per simulation basis.[SetSearchOption "component" true]
will result in the output being displayed per component.
Tip: A result can also be combined with both options.
Inputs
- name
- Valid name options: "simulation" or "component".
- state
- Valid options: true or false.
Example
To set the search option status 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]"
advancedQuery_handle SetSearchOption "simulation" true
advancedQuery_handle SetSearchOption "component" true
advancedQuery_handle GetValueList
hwi CloseStack
Errors
This command returns HW_Error
, if invalid strings are passed to the
argument name.