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 the following cube structure settings:

To execute the operation, in the tCube parameter specify the opened cube instance moniker and in the tArg parameter specify parameters, according to which the changes must be made. The moniker can be obtained on executing the OpenCube operation. The cube must be opened for edit. 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

Various methods of using this operation are given in the following examples:

Example name
Adding a Dimension to Cube Structure
Setting Up Cube Aggregation

See also:

Working with Cubes