QueryColumn¶
A column of a Query: a table column, a related column, a calculation or an aggregate, defined with an expression. Without columns, a query returns all columns of the table.
Capabilities¶
Properties¶
- QueryColumn.Expression: The value of the column: a column name, a relation path, a calculation or an aggregate, such as
Customer.Name,Quantity * UnitPriceorSum(Amount). - QueryColumn.Formula: Legacy shortcut that applies an aggregate function to the column named by
Name. PreferExpression:{ Name : 'Amount', Formula : 'Sum' }is the same as{ Name : 'Amount', Expression : 'Sum(Amount)' }. - QueryColumn.Name: The name of the column in the results. Specify it together with
Expression; whenExpressionis not specified, the name is also used as the column expression. - QueryColumn.Properties: Additional column properties.
XPathmaps the column to an XML path relative to each row node in$Database.ExportToXmland$Database.ImportFromXml. - QueryColumn.XPath: An XPath expression to map data to the column.