Skip to content

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.Disabled or DateDiff('Day', OrderDate, ShipDate).
  • QueryCriteria.Formula: Legacy shortcut that applies an aggregate function to the column named by Name. Prefer Expression, such as Expression : 'Sum(Amount)'.
  • QueryCriteria.IgnoredValues: An array of values to ignore.
  • QueryCriteria.Name: Alias of Expression, used when Expression is not specified. Prefer Expression.
  • QueryCriteria.Properties: Additional criteria properties. IgnoreIfEquals adds a single value to IgnoredValues.
  • QueryCriteria.Value: The value or expression to compare against.
  • QueryCriteria.ValueType: The type of the Value. If not specified, defaults to "Direct". With "Expression", Value is an expression, such as another column: { Expression : 'ShipDate', Value : 'DueDate', ValueType : 'Expression', Comparison : 'GreaterThan' }.