poIScalarDefine SetSelectionSet

Sets the selection set with defines the entities of the result definition.

Syntax

poIScalarDefine_handle SetSelectionSet modelID locator

Application

HyperView Tcl Modify

Description

This command, valid only in Upfront Data Loading Mode, sets the selection set which defines the entities for the result definition for the specified model.
Note: The result definition can only be modified if it is not cached.

Inputs

modelID
The model identifier.
locator
Set locator string of the form" "pool_name id".

Example

To create and use a selection set to define the result definition entities:

hwi OpenStack
hwi GetSessionHandle sess
sess GetProjectHandle proj
proj GetPageHandle page [proj GetActivePage]
page GetWindowHandle win [page GetActiveWindow]
win GetClientHandle client
client GetModelHandle model 1
model GetSelectionSetHandle setH [model AddSelectionSet component]
setH Add "id 1"
client GetResultHandle sdefine 4 scalar
sdefine SetSelectionSet 1 "User_Set [setH GetID]"
hwi CloseStack

Errors

Returns an error code if there was an error setting the selection set and sets error condition on the session handle. See session_handle GetError.

Related Topics

See the Upfront Data Loader APIs topic for additional information regarding the various Tcl/Tk commands that have been added for this workflow.