SetQueryByName() method
- Last UpdatedJun 19, 2024
- 1 minute read
Sets the current query as specified by the query name passed. The query must be in the query favorites file.
Syntax
Object.SetQueryByName(QueryName)
Parameter
QueryName
The name of the query as created by using query favorites. For example, Turbine Queries.
Example
The name of the control is AlarmTreeViewerCtrl1.
#AlarmTreeViewerCtrl1.SetQueryByName("Turbine Queries");