IMetaAttributesSet.Predefined

Syntax

Predefined(tPredefined: MetaAttributeKind): IMetaAttribute;

Parameters

tPredefined - attribute type.

Description

The Predefined property returns an attribute of the specified type from the set.

Example

Executing the example requires that the repository contains a time series database with the OBJ_FC identifier.

Add links to the Metabase, Rds, Cubes system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Rubr: IRubricator;
    Facts: IMetaDictionary;
    Atts: IMetaAttributes;
    AttsSet: IMetaAttributesSet;
    BaseSet: IMetaAttributesSet;
Begin
    MB := MetabaseClass.Active;
    Rubr := MB.ItemById("OBJ_FC").Bind As IRubricator;
    Facts := Rubr.Facts;
    Atts := Facts.Attributes;
    AttsSet := Atts.CreateSubset("", SubsetOperation.Select_);
    BaseSet := AttsSet.BaseSet;
    Debug.WriteLine("Indicator: " + BaseSet.Predefined(MetaAttributeKind.Factor).Name);
End Sub UserProc;

After executing the example the console window displays an attribute identifier that determines an indicator key.

See also:

IMetaAttributesSet