Computes a value based on a given expression after the datatable has been filtered by the given filter. The notation of the expression and filter parameter are described in the Microsoft documentation of the System.Data.DataColumn.Expression property.

Syntax

Smartsite SXML CopyCode image Copy Code
any datatable.compute(datatable dataTable, string expression)
any datatable.compute(datatable dataTable, string expression, string filter)

Parameters

Name Data Type Description
dataTable DataTable The datatable on which the computation is performed.
expression String The expression that is evaluated.
filter String The filter that is applied to the datatable.

Return Value

Data Type Description
Any

Expand image Example

SXML