IMetaAttribute.Primary

Syntax

Primary: Boolean;

Description

The Primary property returns whether an attribute is included in the unique key of time series database.

Comments

Attributes that definitely characterize a factor are included in a unique key.

Available values:

Example

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

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

Sub UserProc;
Var
    Mb: IMetabase;
    Cat: IRubricator;
    RubAttrs: IMetaAttributes;
    i: Integer;
    Attr: IMetaAttribute;
Begin
    Mb := MetabaseClass.Active;
    Cat := Mb.ItemById("FC").Bind As IRubricator;
    RubAttrs := Cat.Facts.Attributes;
    Debug.WriteLine(Attributes that create a unique key of time series database:);
    For i := 0 To RubAttrs.Count - 1 Do
        Attr := RubAttrs.Item(i);
        If Attr.Primary Then
            Debug.WriteLine("  - " + Attr.Name);
        End If;
    End For;
End Sub UserProc;

After executing the example, the console window displays attributes that form the unique key of time series database.

See also:

IMetaAttribute