CreateFactsLookupEx(ExcludeGroup: Boolean): IRubricatorFactsLookup;
CreateFactsLookupEx(ExcludeGroup: Boolean): Prognoz.Platform.Interop.Cubes.IRubricatorFactsLookup;
ExcludeGroup. Indicates whether dummy factors are excluded from search.
The CreateFactsLookupEx method creates an object that searches for the factors excluding dummy factors.
If the ExcludeGroup parameter is set to True, dummy factors are excluded from search (factors that belong to group attributes). If the ExcludeGroup parameter is set to False, the CreateFactsLookupEx method is displayed in the same way with the CreateFactsLookup method.
Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier.
Sub UserProc;
Var
Mb: IMetabase;
RubInst: IRubricatorInstance;
Lookup: IRubricatorFactsLookup;
Factors: Array Of Integer;
Begin
Mb := MetabaseClass.Active;
RubInst := Mb.ItemById("OBJ_RUBRICATOR").Open(Null) As IRubricatorInstance;
Lookup := RubInst.CreateFactsLookupEx(True);
Factors := Lookup.LookupFactors;
Debug.WriteLine(Factors found: + Factors.Length.ToString);
End Sub UserProc;
On executing the example the search with excluding of dummy factors is executed. The number of factors found is displayed in the development environment console.
Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier.The specified procedure is an entry point for the .NET assembly.
Imports Prognoz.Platform.Interop.Cubes;
Imports Prognoz.Platform.Interop.Metabase;
Public Shared Sub Main(Params: StartParams);
Var
Mb: IMetabase;
RubInst: IRubricatorInstance;
Lookup: IRubricatorFactsLookup;
Factors: Array;
Begin
Mb := Params.Metabase;
RubInst := Mb.ItemById["OBJ_RUBRICATOR"].Open(Null) As IRubricatorInstance;
Lookup := RubInst.CreateFactsLookupEx(True);
Factors := Lookup.LookupFactors();
System.Diagnostics.Debug.WriteLine(Factors found: + Factors.Length.ToString());
End Sub;
On executing the example the search with excluding of dummy factors is executed. The number of factors found is displayed in the development environment console.
See also: