poIQueryCtrl SetDataSourceProperty
Sets the new value for a specified property for a given data source.
Syntax
poIQueryControl_handle SetDataSourceProperty source property value
Application
HyperView Tcl Modify
Description
This command sets the new value for a specified property for a given data source.
Inputs
- source
- The source for which the property is to be set.
- property
- The property to be set.
- value
- The value of the property to be set.
Example
To set the datatype property of result (source) to
Stress:
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
set pageIndex [myProjectName GetActivePage]
myProjectName GetPageHandle myPageName $pageIndex
set windowIndex [myPageName GetActiveWindow]
myPageName GetWindowHandle myWindowName $windowIndex
myWindowName GetClientHandle myPostName
set modelIndex [myPostName GetActiveModel]
myPostName GetModelHandle myModelName $modelIndex
myModelName GetQueryCtrlHandle myQueryName
myQueryName SetDataSourceProperty result datatype Stress
Errors
Returns 0 if successful, or an error code (HW_InvalidHandle) if the handle used to invoke the method is no longer valid.