IRubricatorExecuteResult.DataAttributes

Syntax

DataAttributes(Dictionary: RubricatorDictionary): IMetaAttributesSet;

Parameters

Dictionary. Dictionary, for which information on extracted attributes must be obtained.

Description

The DataAttributes property returns information on retrieved attribute values for the specified dictionary of the time series database.

Example

Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier.

Sub UserProc;
Var
    MB: IMetabase;
    RubInst: IRubricatorInstance;
    Cub: ICubeInstance;
    Dest: ICubeInstanceDestination;
    Exe: ICubeInstanceDestinationExecutor;
    Mat: IMatrix;
    Result: IRubricatorExecuteResult;
    DataAttributes: IMetaAttributesSet;
    MetaAttr: IMetaAttribute;
    Field: ITableField;
Begin
    MB := MetabaseClass.Active;
    RubInst := MB.ItemById("OBJ_RUBRICATOR").Open(NullAs IRubricatorInstance;
    Cub := RubInst As ICubeInstance;
    Dest := Cub.Destinations.DefaultDestination;
    Exe := Dest.CreateExecutor;
    //Time series attribute
    (Exe As IRubricatorFactorIO).FactDataId := "FACTOR;REV;MNEMO";
    //Observations attribute
    (Exe As IRubricatorFactorIO).ValueId := "KEY;VL";
    Exe.PrepareExecute(Null);
    Exe.PerformExecute;
    Mat := Exe.Matrix;
    Result := CubeClass.ExecuteResult(Mat) As IRubricatorExecuteResult;
    DataAttributes := Result.DataAttributes(RubricatorDictionary.Facts);
    For Each MetaAttr In DataAttributes Do
        Debug.WriteLine(Dictionary attribute:  + MetaAttr.Name);
        Debug.Indent;
        Debug.WriteLine(Table field identifier:  + MetaAttr.FieldId);
        Debug.WriteLine(Multiple values:  + MetaAttr.HasMultipleValues.ToString);
        Debug.WriteLine(Hidden:  + MetaAttr.Hidden.ToString);
        Debug.WriteLine(Possibility to store empty values:  + MetaAttr.Nullable.ToString);
        Debug.Unindent;
    End For;
End Sub UserProc;

After executing the example data of the time series database is retrieved based on the specified time series and observation attributes. Information on extracted attributes of time series is displayed in the development environment console.

See also:

IRubricatorExecuteResult