Expression::evaluate Method [AX 2012]
Evaluates a predefined expression over a document.
client server public static ExpressionResultType evaluate(
CompanyId _companyId,
TableId _tableId,
RecId _recId,
ExpressionId _expressionId,
[ExpressionDataSources _customDataSources])
Run On
CalledParameters
- _companyId
- Type: CompanyId Extended Data Type
- _tableId
- Type: TableId Extended Data Type
- _recId
- Type: RecId Extended Data Type
- _expressionId
- Type: ExpressionId Extended Data Type
- _customDataSources
- Type: ExpressionDataSources Class
Return Value
Type: ExpressionResultType Enumerationtrue if a node set is returned; otherwise, false.
The runtime projection stored in the ExpressionTable table contains the set of data sources and fields that were used in the definition of the expression. The evaluation engine will only build an XML data document using those fields with the XPath query being applied to this filtered document.
The custom data source collection will contain fields with their respective values. The data source collection used for generation of the design time projection only contains field definitions with no values.
Show: