ValidationExecSelection.CreateSelection

Syntax

CreateSelection(Selection: IDimSelectionSet);

Parameters

Selection. Selection, according to which data must be obtained.

Description

The CreateSelection constructor creates a selection.

Example

Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier that includes validation calculation with the 1 key.

Sub UserProc;
Var
    MB: IMetabase;
    RubInst: IRubricatorInstance;
    ValiRun: IValidationExecRun;
    ValidSel: IValidationExecSelection;
    ValiData: IValidationExecData;
    Mat: IMatrix;
    Iterator: IMatrixIterator;
Begin
    MB := MetabaseClass.Active;
    RubInst := MB.ItemById("OBJ_RUBRICATOR").Open(NullAs IRubricatorInstance;
    ValiData := RubInst.GetValidationExecData(1, DictionaryGetDataOptions.None);
    ValidSel := New ValidationExecSelection.CreateSelection(Null);
    ValiRun := RubInst.LoadValidationRun(ValiData, ValidSel);
    Mat := ValiRun.Matrix;
    Iterator := Mat.CreateIterator;
    Iterator.Move(IteratorDirection.First);
    While Iterator.Valid Do
        Debug.WriteLine(Iterator.Value);
        Iterator.Move(IteratorDirection.Next);
    End While;
End Sub UserProc;

After executing the example validation calculation data with the 1 key is displayed in the console window if data exists.

See also:

ValidationExecSelection