DCS evaluateWhereExpressions

From Catglobe Wiki
Revision as of 09:59, 5 December 2018 by Administrator (talk | contribs) (Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


DCS_evaluateWhereExpressions

This function is an alias to EvalWhere in DataCacheSpecification class.

Syntax

DCS_evaluateWhereExpressions(expression, DCSRId[, weight[, filter]]);

Arguments

Dictionary expressions (See DCS evaluateWhereExpression)

number DCSRId

string weight

string filter

Return type

Dictionary

Example

number DCSRId = 15596823;
Dictionary expressions = {
	"totalFemail": "count() where true",
	"userIdFemail": "selectColumn (UserId) where true"
	};
string filter = "Q1==2";
DCS_evaluateWhereExpressions(expressions, DCSRId, "", filter);
//{"totalFemail": 92, "userIdFemail": {160206350,160206358,160206372,...}}