Cubes > Cubes Assembly Interfaces > IRubricator > IRubricator.HasMnemonics
HasMnemonics: Boolean;
The HasMnemonics property determines whether mnemonics are used for indicators identification.
Available values:
True. Mnemonics are used to identify indicators. The default value when a time series database is created.
False. Mnemonics are not used to identify factors. The IRubricatorInstance.GetFactDataByMnemo method always returns empty result. The MNEMO indicators attribute is not present in the dictionary that is returned by the IRubricator.EditFacts property.
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 indicators changes will not be kept in the database, that is, the time series database is non-version. Also, indicators do not use mnemonics for identification.
See also: