IRubricator.HasMnemonics

Syntax

HasMnemonics: Boolean;

Description

The HasMnemonics property determines whether mnemonics are used for factors identification.

Comments

Available values:

Example

Executing the example requires that the repository contains a database with the OBJ_DB identifier and an MDM repository with the MDM_REPO identifier. Add links to the Metabase, Cubes, Rds, Db, Dimensions system assemblies.

Sub UserProc;
Var
    Mb: IMetabase;
    Inf: IMetabaseObjectCreateInfo;
    Obj: IMetabaseObjectDescriptor;
    Cat: IRubricator;
    Rds: IRdsDatabase;
    Database: IDatabase;
Begin
    Mb := MetabaseClass.Active;
    Inf := Mb.CreateCreateInfo;
    Inf.Id := Mb.GenerateId("OBJ_FC");
    Inf.Name := Inf.Id;
    Inf.ClassId := MetabaseObjectClass.KE_CLASS_RUBRICATOR;
    Inf.Parent := Mb.Root;
    Inf.KeepEdit := True;
    Obj := Mb.CreateObject(Inf);
    Cat := (Obj As IRubricator);
    Rds := Mb.ItemById("RDS_REPO").Bind As IRdsDatabase;
    Cat.Database := Rds;
    Database := Mb.ItemById("OBJ_DB").Bind As IDatabase;
    Cat.DatabaseEx := Database;
    Cat.AutoUnits := True;
    Cat.HasMnemonics := False;
    Cat.KeepHistory := False;
    Cat.CalendarLevels := DimCalendarLevelSet.Year Or DimCalendarLevelSet.Quarter;
    Cat.AlterAndSave;
    Debug.WriteLine(Inf.Id);
End Sub UserProc;

After executing the example a time series database is created in the repository root, and its identifier is displayed in the console window. The history of factors changes will not be kept in the database, that is, the time series database is non-version. Also, factors do not use mnemonics for identification.

See also:

IRubricator