poIAdvancedQuery WriteData
Writes the output data to files.
Syntax
advancedQuery_handle WriteData filename
Application
HyperView Tcl Query
Description
This command is used to write the output data into the given file name.
Inputs
- filename
- The name of the file (for example, advQueryResult.csv).Note: The file name can have a .csv extension.
Example
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 WriteData "advQueryResult.csv"
hwi CloseStack
Errors
This command returns HW_Error
, if no argument is passed to the file
name.