SetCube

Syntax

SetCubeResult SetCube(CubeId tCube, SetCubeArg tArg)

Parameters

tCube. Opened cube instance moniker.

tArg. Metadata change parameters.

Description

The SetCube operation changes cube metadata.

Comments

This operation enables the user to change cube structure:

To execute the operation, specify the opened cube instance moniker in the tCube parameter and specify parameters, according to which the changes must be made, in the tArg parameter. The moniker can be obtained on executing the OpenCube operation. The tArg.pattern field is used to specify the pattern of changing the cube structure, and the tArg.meta field contains updated metadata.

The operation results in the changed cube moniker and requested metadata that can be specified in the tArg.metaGet pattern.

To save the changes, execute the SaveObject or SaveObjectAs operation after the SetCube operation.

NOTE. Foresight Analytics Platform enables the user to change only standard cube structure.

Example

The example of adding a dimension to cube structure. The request contains:

The response contains updated information about cube dimensions.

SOAP

JSON

C#

See also:

Working with Cubes