ILanerAttributeColumn.NamingFormat

Fore Syntax

NamingFormat: String;

Fore.NET Syntax

NamingFormat: string;

Description

The NamingFormat property determines the name format of the displayed attribute.

Comments

A name is set by a string of the following pattern: <Rubr_Attr>.<Dict_Attr>, where 

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.

Fore Example

Executing this example requires a form containing:

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.

Fore.NET Example

Executing this example requires a .NET form containing:

Workbook of the time series database is loaded to UiErAnalyzer1. The database contains the factors attribute COUNTRY, that refers to a dictionary.

The procedure is a handler of the Click event for the button1 button.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Laner;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    ErAn: EaxAnalyzer;
    Laner: ILaner;
    LanerAttr: ILanerAttributeColumns;
    LanerA: ILanerAttributeColumn;
Begin
    ErAn := uiErAnalyzerNet1.ErAnalyzer.ErAnalyzer;
    Laner := ErAn.Laner;
    Laner.BeginUpdate();
    // Additional attribute display 
    LanerAttr := Laner.AttributeColumns;
    LanerA := LanerAttr.AddByType(LnColumnType.lcltAttribute) As ILanerAttributeColumn;
    LanerA.NamingFormat := "COUNTRY.KEY";
    Laner.EndUpdate();
End Sub;

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:

ILanerAttributeColumn