Warnings: IStringList;
Warnings: Prognoz.Platform.Interop.ForeCollections.StringList;
The Warnings property returns validation filter warnings.
Warnings are presented as a string array.
The example is the function, to the input of which the validation filter is passed: parameter val. Add links to the Ms, Cubes system assemblies.
Function ExecuteVal(val: IValidationFilter): IValidationExecRun;
Var
sett: IValidationExecuteSettings;
res: IValidationExecRun;
s: string;
Begin
sett := New ValidationExecuteSettings.Create;
res := val.Execute(sett);
Debug.WriteLine(======Messages=====);
For Each s In sett.Messages Do
Debug.WriteLine(s);
End For;
Debug.WriteLine(======Warnings=====);
For Each s In sett.Warnings Do
Debug.WriteLine(s);
End For;
Return res;
End Function ExecuteVal;
After executing the function returns the data of validation calculation. The messages and warnings of validation filter are displayed in the console window.
The example is the function, to the input of which the validation filter is passed: parameter val.
Imports Prognoz.Platform.Interop.Cubes;
Imports Prognoz.Platform.Interop.Ms;
…
Public Shared Function ExecuteVal(val: IValidationFilter): IValidationExecRun;
Var
sett: ValidationExecuteSettings;
res: IValidationExecRun;
s: string;
Begin
sett := New ValidationExecuteSettings.Create();
res := val.Execute(sett);
System.Diagnostics.Debug.WriteLine(======Messages=====);
For Each s In sett.Messages Do
System.Diagnostics.Debug.WriteLine(s);
End For;
System.Diagnostics.Debug.WriteLine(======Warnings=====);
For Each s In sett.Warnings Do
System.Diagnostics.Debug.WriteLine(s);
End For;
Return res;
End Function;
After executing the function returns the data of validation calculation. The messages and warnings of validation filter are displayed in the console window.
See also: