TagData: Variant;
The TagData property determines custom attribute indicator. This property can be used to store applied information on a system level.
Executing the example requires that the repository contains a time series database with the FC_COMM identifier.
Sub Main;
Var
mb: IMetabase;
Rubr: IRubricator;
mDict: IMetaDictionary;
mAttr: IMetaAttribute;
Begin
mb := MetabaseClass.Active;
Rubr := mb.ItemById("FC_COMM").Edit As IRubricator;
mDict := Rubr.GetDictionary(RubricatorDictionary.Facts, RubricatorDictionaryOperation.Edit);
mAttr := mDict.Attributes.FindByKind(MetaAttributeKind.Factor);
mAttr.TagData := Factor key;
Rubr.AlterAndSave;
End Sub Main;
After executing the example a custom indicator is set for the Factor attribute.
See also: