IAutoCubeDestinations.Add

Syntax

Add: IAutoCubeDestination;

Description

The Add method creates a new automatic cube display version.

Example

Executing the example requires that the repository contains an automatic cube with the AUTO_CUBE identifier.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

AutoCub: IAutoCube;

Dest: IAutoCubeDestination;

Begin

MB := MetabaseClass.Active;

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

AutoCub := MObj As IAutoCube;

Dest := AutoCub.Destinations.Add;

Dest.Id := "New" + MObj.Id;

Dest.Name := "New" + MObj.Name;

Dest.MakeDefault;

MObj.Save;

End Sub Main;

After executing the example a new display version is created in the automatic cube. This display version is set as a default display version.

See also:

IAutoCubeDestinations