ICompoundDimension.SaveCustomDependencies

Fore Syntax

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

Fore.NET Syntax

SaveCustomDependencies(Dependencies: Prognoz.Platform.Interop.Metabase.IMbElementDependencies; ObjectKey: uinteger);

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.

Fore 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.

Fore.NET Example

Executing the example requires virtual cube with the CUBE_VIRTUAL identifier (element changes in MDM dictionary is not traced).

Imports Prognoz.Platform.Interop.Cubes;
Imports Prognoz.Platform.Interop.Dimensions;

Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    Obj: IMetabaseObject;
    cub: IVirtualCube;
    comp: ICompoundDimension;
    cust: ICustomDimension;
Begin
    mb := Params.Metabase;
    Obj := mb.ItemById["CUBE_VIRTUAL"].Edit();
    cub := Obj As IVirtualCube;
    comp := cub.FactDimension As ICompoundDimension;
    cust := comp.CustomContainer;
    comp.SaveCustomDependencies(Obj.ElementDependencies, Obj.Key);
    Obj.Save();
End Sub;

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

See also:

ICompoundDimension