NamingFormat: String;
The NamingFormat property determines the name format of the displayed attribute.
A name is set by a string of the following pattern: <Rubr_Attr>.<Dict_Attr>, where
<Rubr_Attr>. Identifier of the time series database attribute that refers to a dictionary.
<Dict_Attr>. Identifier of the dictionary attribute to which the time series database attribute <Rubr_Attr> refers.
For example, the time series database contains the COUNTRY attribute that refers to a dictionary. The display of the KEY attribute is set up for this dictionary.
Executing this example requires a form containing:
A button with the Button1 identifier.
The UiErAnalyzer component with the UiErAnalyzer1 identifier.
The LanerBox component that gets data from UiErAnalyzer1.
Workbook of the time series database is loaded to UiErAnalyzer1. The database contains the factors attribute COUNTRY, that refers to a dictionary.
This procedure is a handler of the OnClick event for the Button1 button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
ErAn: IEaxAnalyzer;
Laner: ILaner;
LanerAttr: ILanerAttributeColumns;
LanerA: ILanerAttributeColumn;
Begin
ErAn := UiErAnalyzer1.ErAnalyzer;
Laner := ErAn.Laner;
Laner.BeginUpdate;
// Additional attribute display
LanerAttr := Laner.AttributeColumns;
LanerA := LanerAttr.AddByType(LnColumnType.Attribute) As ILanerAttributeColumn;
LanerA.NamingFormat := "COUNTRY.KEY";
Laner.EndUpdate;
End Sub Button1OnClick;
After executing the procedure the workbook shows value of the attribute that is the key of the dictionary referred to by the factors attribute COUNTRY.
See also: