IRubricatorInstance.GetValidationExecData

Syntax

GetValidationExecData(ValidationExecKey: Integer; [Options: DictionaryGetDataOptions = 0]): IValidationExecData;

Parameters

ValidationExecKey - validation calculation key.

Options - data getting parameter. Optional parameter. Default value - DictionaryGetDataOptions.None - getting data for reading.

Description

The GetValidationExecData method returns data on validation calculation by its key.

Example

Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier. Validation calculation with the 1 key must be available in the factors database.

Sub Main;

Var

MB: IMetabase;

RubInst: IRubricatorInstance;

ValiData: IValidationExecData;

i: Integer;

a: Array Of Integer;

Begin

MB := MetabaseClass.Active;

RubInst := MB.ItemById("OBJ_RUBRICATOR").Open(Null) As IRubricatorInstance;

ValiData := RubInst.GetValidationExecData(1, DictionaryGetDataOptions.None);

Debug.WriteLine("Key " + ValiData.Key.ToString);

Debug.WriteLine("Name " + ValiData.Name);

Debug.WriteLine("Revision key" + ValiData.RevisionKey.ToString);

Debug.WriteLine("Run date" + ValiData.Stamp.ToString);

Debug.WriteLine("Validation key " + ValiData.ValidationKey.ToString);

Debug.WriteLine("Calculated validations:");

a := New Integer[ValiData.Validations.Length];

a := ValiData.Validations;

For i := 0 To ValiData.Validations.Length - 1 Do

Debug.WriteLine(a[i].ToString);

End For;

End Sub Main;

After executing the example information about validation calculation with the 1 key is displayed in the console window.

See also:

IRubricatorInstance