QueryCriteria¶
A condition of a Query: an expression, a value and a comparison, such as { Expression : 'Amount', Value : 1000, Comparison : 'GreaterThan' }. Criteria in the same block are combined with And unless Condition : 'Or' is given.
Capabilities¶
Properties¶
- QueryCriteria.Comparison: The comparison operator to use. Defaults to "Equals".
- QueryCriteria.Condition: The condition to combine this criteria with the next one. If not specified, defaults to "And".
- QueryCriteria.Expression: The value to compare: a column name, a relation path, a calculation or an aggregate, such as
Status,Employee.User.DisabledorDateDiff('Day', OrderDate, ShipDate). - QueryCriteria.Formula: Legacy shortcut that applies an aggregate function to the column named by
Name. PreferExpression, such asExpression : 'Sum(Amount)'. - QueryCriteria.IgnoredValues: An array of values to ignore.
- QueryCriteria.Name: Alias of
Expression, used whenExpressionis not specified. PreferExpression. - QueryCriteria.Properties: Additional criteria properties.
IgnoreIfEqualsadds a single value toIgnoredValues. - QueryCriteria.Value: The value or expression to compare against.
- QueryCriteria.ValueType: The type of the
Value. If not specified, defaults to "Direct". With "Expression",Valueis an expression, such as another column:{ Expression : 'ShipDate', Value : 'DueDate', ValueType : 'Expression', Comparison : 'GreaterThan' }.