ICompoundDimension.SaveCustomDependencies

Syntax

SaveCustomDependencies(Dependencies: IMbElementDependencies; [ObjectKey: Integer = -1]);

Parameters

Dependencies. Collection of records tracing object dependencies on elements of MDM dictionaries.

ObjectKey. Object key.

Description

The SaveCustomDependencies method saves dependencies from elements used to create composite dictionary based on cube facts dimension.

Comments

Sources used to create composite dictionary are determined in the ICompoundDimension.CustomContainer property.

Virtual cube calls this method when saved, if elements were changed for this cube in MDM dictionaries.

Example

Executing the example requires virtual cube with the CUBE_VIRTUAL identifier (element changes in MDM dictionary is not traced). Add links to the Metabase, Cubes, Dimensions system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    Obj: IMetabaseObject;
    cub: IVirtualCube;
    comp: ICompoundDimension;
    cust: ICustomDimension;
Begin
    mb := metabaseClass.Active;
    Obj := mb.ItemById("CUBE_VIRTUAL").Edit;
    cub := Obj As IVirtualCube;
    comp := cub.FactDimension As ICompoundDimension;
    cust := comp.CustomContainer;
    comp.SaveCustomDependencies(Obj.ElementDependencies);
    Obj.Save;
End Sub UserProc;

Executing the example saves dependencies on elements used to build a composite dictionary based on fact dimension of the cube.

See also:

ICompoundDimension