ILaner.CheckAttributesCompliance

Syntax

CheckAttributesCompliance: Boolean;

Description

The CheckAttributesCompliance method checks whether the list of workbook attributes corresponds to the list of attributes of the parent time series database.

Comments

Available values:

The system checks whether the attributes of time series database correspond to the attributes of the workbook series based on the attributes count, type, keys, and identifiers.

For the synchronization of attributes composition use the ILaner.RefreshAttributesStructure method.

Example

Executing the example requires a form with the following components: the Button component named Button1, the LanerBox component named LanerBox1, and the UiErAnalyzer component named UiErAnalyzer1. UiErAnalyzer1 is a data source for LanerBox1. A workbook of the time series database with the ID OBJ_RUBRICATOR should be loaded to UiErAnalyzer1.

The example is a handler of the OnClick event for the Button1 component.

Add links to the Cubes, Laner and Metabase system assemblies.

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        ErAn: IEaxAnalyzer;
        Laner: ILaner;
        Mb: IMetabase;
        RubDescr: IMetabaseObjectDescriptor;
    Begin
        ErAn := UiErAnalyzer1.ErAnalyzer;
        Laner := ErAn.Laner;
        text := Laner.CheckAttributesCompliance.ToString;
        If Not Laner.CheckAttributesCompliance Then
            Mb := MetabaseClass.Active;
            RubDescr := Mb.ItemById("OBJ_RUBRICATOR");
            Laner.RubricatorInstance := RubDescr.Open(NullAs IRubricatorInstance;
        Laner.RefreshAttributesStructure;
        End If;
    End Sub Button1OnClick;

If the list of series attributes differs for the workbook and the parent time series database, it is synchronized after executing the example.

See also:

ILaner