|
<< Click to Display Table of Contents >>
AddUaField |
AddUaField(Name, [Alias], [Aggregate])
This method adds, at run time, a Field to a Query configured as an OPC UA-type. This method returns True if successful and False on failure. The parameters of this method are the following:
•Name: A String with the path, or Column, of a Field
•Alias: A String with the title of a Field. If this parameter is omitted, assumes an empty String
•Aggregate: A String with the type of aggregation function of a Field, in case a Processed Data-type Query is used. If this parameter is omitted, assumes the value Interpolative
In a Raw Data-type Query, that is, with the UaQueryType property equal to 0 (zero), this method fails if there is already a defined Field. This method is only effective if the QueryType property is configured as OPC UA, that is, with the value equal to 2 (two, qtOpcUa). Otherwise, it returns False.