AttributeQuery Class
The AttributeQuery class represents an attribute query that is built from the menu option: Attribute Query. The functions and properties of this class can be used to build a new attribute query, modify an existing attribute query and output the results to a worksheet.
Property Summary
- Property AttributeClass As AttributeClassType
- Property RetrieveType As AttributeRetrieveType
Sub/Function Summary
- Sub AddAttributeDefinition(attributeName As String)
- Function GetSymbolAttributeValue(attributeName As String, symbolName As String, [useDefault As Boolean = True]) As String
- Function GetSystemAttributeValue(attributeName As String, [useDefault As Boolean = True]) As String
- Function GetUserAttributeValue(attributeName As String, userName As String, [useDefault As Boolean = True]) As String
- Sub ClearDefinitions()
- Sub LoadQuery(fileName As String)
- Function Run ([worksheetName As String], [cell As String]) As QueryResult
- Sub RunToWorksheet([worksheetName As String], [cell As String])
Properties
| Parameter | Description |
|---|---|
| AttributeClass |
Property AttributeClass As AttributeClassType Specifies the class of the attributes to query. The attribute class determines which type of Longview attribute will be retrieved.
|
| AttributeRetrieveType |
Property AttributeRetrieveType As AttributeRetrieveType Specifies whether to retrieve attribute definitions or the attribute values. This property controls the type of information returned by the query.
|
Sub/Functions
| Parameter | Description |
|---|---|
| AddAttributeDefinition |
Sub AddAttributeDefinition(attributeName As String) Adds an attribute name to the list of attributes you wish to query. Multiple attributes can be added to retrieve multiple attribute values in a single query.
|
| GetSymbolAttributeValue |
Function GetSymbolAttributeValue(attributeName As String, symbolName As String, [useDefault As Boolean = True]) As String
|
| GetSystemAttributeValue |
Function GetSystemAttributeValue(attributeName As String, [useDefault As Boolean = True]) As String
|
| GetUserAttributeValue |
Function GetUserAttributeValue(attributeName As String, [useDefault As Boolean = True]) As String
|
| ClearDefinitions |
Sub ClearDefinitions() Removes all attribute names that have been added or loaded in the AttributeQuery. |
| LoadQuery |
Sub LoadQuery(fileName As String) Loads an attribute query that has been previously built and saved from the menu option: Attribute Query.
|
| Run |
Function Run() As QueryResult Runs an attribute query and returns the results in a QueryResult class.
|
| RunToWorksheet |
Sub RunToWorksheet([worksheetName As String], [cell As String]) Runs an attribute query and places the results into the specified worksheet and cell location.
|