Structure of Composite Dictionary

Fact composite dictionary is based on fixed dimensions of source cubes of virtual cube. The ICompoundDimension interface is used to work with a fact composite dictionary. If calendar dictionaries are fixed in sources, a virtual cube also contains composite calendar dictionary. The ICompoundCalendar interface is used to work with a composite calendar dictionary. Both composite dictionaries have characters of internal objects (IsInternal=True) and available in  object list defining virtual cube.

The example of access to the structure of composite dictionary of virtual cube facts:

Var
    //...
    MB: IMetabase;
    VCube: IVirtualCube;
    CompDim: ICompoundDimension;
    //...
Begin
    //...
    MB := MetabaseClass.Active;
    VCube := MB.ItemById("VCube_1").Edit As IVirtualCube;
    CompDim := VCube.FactDimension As ICompoundDimension;
    //...

The source collection, available in the Sources property contains sources, in which at least one dimension is fixed. Elements in a fact composite dictionary are created dynamically on opening a virtual cube. Structure and name of composite dictionary elements cannot be changed. Names are formed based on source names and names of fixed elements in dimensions of sources.

If custom elements set is to be used in fact composite dictionary, cube can be set to use fact dimension. The InitCustomContainer method is used for this purpose. This method creates or updates local fact dimension in a virtual cube. After executing this method local dimension is available in the CustomContainer property. It contains required hierarchy of elements and determines their binding by selected attribute values.

See also:

Working with Dictionary Structure