poIQueryCtrl SetRemoveDuplicates

Sets the state of the remove duplicates option in the query handle.

Syntax

poIQueryControl_handle SetRemoveDuplicatesstate

Application

HyperView Tcl Modify

Description

This command sets the state of the remove duplicates option (which will remove duplicate node data queried when set to True).

Inputs

state
Boolean value to set the remove duplicates state (True/False).

Example

To remove the duplicate node data queried:
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
client_handle GetModelHandle model_handle [client_handle GetActiveModel]
set sid [model_handle AddSelectionSet node]
model_handle GetSelectioSetHandle selset_handle $sid
selset_handle Add all
model_handle GetQueryCtrlHandle query_handle
query_handle SetRemoveDuplicates true
query_handle SetQuery “node.id node.coord component.id”
query_handle SetSelectionSet $sid
query_handle GetIteratorHandle iter_handle
for { iter_handle First }  { [iter_handle Valid] } { iter_handle Next } { 
      iter_handle GetDataList
}
hwi CloseStack

Errors

Returns an error if the value state cannot be applied.