IAutoCubeDestinations.RemoveByKey

Syntax

RemoveByKey(Key: Integer): Boolean;

Parameters

Key. Key of display version that must be removed.

Description

The RemoveByKey method removes display version of automatic cube, which key is passed by the Key parameter.

Example

Executing the example requires that the repository contains an automatic cube with the AUTOCUBE identifier. Add links to the Metabase and Cubes system assemblies. Set the Key parameter for the RemoveByKey method. Key is a key display version that must be removed from the cube.

Sub Main;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    AutoCub: IAutoCube;
    Dest: IAutoCubeDestinations;

Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("AUTOCUBE").Edit;
    AutoCub := MObj As IAutoCube;
    Dest := AutoCub.Destinations;
    Dest.RemoveByKey(1);
    MObj.Save;

End Sub Main;

After executing the example display version with the 1 key is removed from the automatic cube.

See also:

IAutoCubeDestinations