IStandardCubeDestinations.Add

Syntax

Add: IStandardCubeDestination;

Description

The Add method adds a new cube display version.

Example

Executing the example requires that the repository contains a standard cube with the Stan_Cube identifier.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

StandCub: IStandardCube;

Dest: IStandardCubeDestination;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("Stan_Cube").Edit;

StandCub := MObj As IStandardCube;

Dest := StandCub.Destinations.Add;

Dest.Id := "Dest_1";

Dest.Name := Option #1;

MObj.Save;

End Sub Main;

After executing the example a new display version is added to the cube.

See also:

IStandardCubeDestinations