SetExp

Syntax

GetTreeElementsResult SetExp(

ExpressionId tExpressionId,

TermProviderId tTermProviderId,

ExpOperations tOperations,

ExpressionArgs tExpressionAgrs)

Parameters

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.

Description

The SetExp operation is used to form terms by the sent information.

Comments

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:

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.

Example

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.

SOAP

JSON

C#

See also: