Primary: Boolean;
Primary: boolean;
The Primary property returns whether an attribute is included in the unique key of time series database.
Attributes that definitely characterize a factor are included in a unique key.
Available values of Primary:
True. An attribute is included in a unique key.
False. An attribute is not included in a unique key.
Executing the example requires that the repository contains a time series database with the FC identifier.
Add links to the Metabase, Cubes, 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: