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

CheckAttributesCompliance returns True if the workbook contains the same list of attributes as the parent time series database; or False if otherwise.

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 Button1 button, the LanerBox component named LanerBox1 and the UiErAnalyzer component named UiErAnalyzer1 which is used as a data source for LanerBox. UiErAnalyzer1 must contain the workbook of the time series database with the ID OBJ_RUBRICATOR. The references to the Metabase and the Cubes system assemblies also need to be added.

Click the button to start executing this example.

    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 this example.

See also:

ILaner