M-Files API 23.11.13135.0
Expression Object
Members 
Description
The Expression class represents an expression that can be evaluated.
Public Methods
Creates a copy of the object.
Gets the expression as text.
Gets the whole expression as indirection levels if possible.
Set the AnyField expression.
Sets the FileValue expression.
Set the ObjectIDSegment expression.
Set the Permission expression.
Sets the PropertyValue expression.
Sets the StatusValue expression.
Sets the TypedValue expressions.

Sets the TypedValue expressions.

Only works with the data types MFDatatypeLookup and MFDatatypeMultiSelectLookup.
Sets the expression for searching the value list items.
Public Properties
The data associated with the AnyField expression.
The data associated with the FileValue expression.
The data associated with the ObjectIDSegment expression.
The type of the Permissions expression.
The data function of the PropertyValue expression.
The parent-child behavior of the PropertyValue expression.
The property definition of the PropertyValue expression.
The data function of the StatusValue expression.
The type of the StatusValue expression.
The data function of the TypedValue expression.
The data type of the TypedValue expression.
The parent-child behavior of the TypedValue expression.
The value list part of the TypedValue expression.
Indirection levels of this expression.
The type of an expression.
Remarks

Expression objects are typically used with views and searches to define the operator for the search. A TypedValue in a SearchCondition object is used in conjunction with an expression object to define an operand for the expression. The condition operator is encapsulated in the parent SearchCondition object.

There are several types of expressions. See the MFExpressionType enumeration for the complete list. The expression is created by using one of the "Set" methods provided. The method sets the expression type and other required parameters.

 

 

A single property value expression and condition (highlighted with the green rectangle) as seen in M-Files Desktop.

See Also

Expression Members  | SearchCondition Object