IVirtualCubeCompounds.Predefined

Syntax

Predefined(Value: VirtualCubeCompoundPredefinedType): IVirtualCubeCompound;

Parameters

Value. Type of predetermined structure.

Description

The property is read-only.

The Predetermined property returns the specified predetermined structure.

Comments

If structure of the specified type is not present in the collection, Predetermined returns Null.

Example

Executing the example requires that the repository contains a virtual cube with the CUBE_VIRT identifier. Also, add links to the Metabase, Cubes system assemblies.

    Sub UserProc;
    Var
        mb: IMetabase;
        VirtCube: IVirtualCube;
        Compounds: IVirtualCubeCompounds;
        VCompound: IVirtualCubeCompound;
    Begin
        Mb := MetabaseClass.Active;
        VirtCube := Mb.ItemById("CUBE_VIRT").Edit As IVirtualCube;
        Compounds := VirtCube.Compounds;
        VCompound := Compounds.Predefined(VirtualCubeCompoundPredefinedType.Custom);
        If VCompound <> Null Then
            Compounds.RemoveByKey(VCompound.Key);
        End If;
        (VirtCube As IMetabaseObject).Save;
    End Sub UserProc;

After executing the example the predetermined structure of custom type (if it is present in cube) is removed from the virtual cube.

See also:

IVirtualCubeCompounds