GetTreeElementsResult SetExp(
ExpressionId tExpressionId,
TermProviderId tTermProviderId,
ExpOperations tOperations,
ExpressionArgs tExpressionAgrs)
tExpressionId. Moniker of the expression, for which operation is executed.
tTermProviderId. Moniker of the provider, which will process terms.
tOperations. Operation execution parameters.
tExpressionAgrs. Terms and term parameters used on executing the operation.
The SetExp operation is used to form terms by the sent information.
This operation enables the user to get terms that are used to form end expressions by the sent information about dimension elements, functions (mathematical, statistical, and so on), operations (arithmetic, logical, and so on). The obtained expressions are used by Foresight Analytics Platform kernel to calculate values.
To execute the operation, specify monikers of the expression, for which terms are formed, in tExpressionId and tTermProviderId, and the provider that processes terms and creates their formulas. Monikers are created depending on the object, which expression editor was worked with. Generally, monikers look as follows: "object moniker"!"object prefix"!Trans!"transformation type"!"transformation key"!"postfix".
Where:
"object moniker". Moniker of the object, in which work with expression is executed. Work with expressions can be executed in ETL task objects, analytical data area, on working with pages of regular reports, express reports, workbooks, in wizards of cubes, dictionaries and tables.
"object prefix". Prefix that specifies object type. Available values:
Eax. Express reports.
Laner. Workbooks.
"transformation type". It depends on the value of created expression. Available values:
Calc. Value calculation expression.
Sort. Sorting expression.
Filter. Filtering expression.
"transformation key". Transformation key can be obtained in metadata of the object, with which work is executed.
"postfix". It is added depending on the specified moniker. Available values:
Exp. For the tExpressionId moniker.
TermProv. For the tTermProviderId moniker.
Operation execution parameters are specified in tOperations, and terms and parameters for creating forms that will be used on operation execution are specified in tExpressionAgrs.
Operation execution results in formed internal term views that can be used to create expressions, or information about errors if incorrect term data is specified.
Below is the example of using the SetExp operation for processing term set and for forming a new term by the operation about dimension element. The request contains a term set and parameters for creating a new term. The response contains formed internal term views and information about a new term.
See also: