IRubricatorFormulasLookup.WhereKind

Syntax

WhereKind: RubricatorFormulaDataKind;

Description

The WhereKind property determines a form of required formula.

Comments

Formulas kind is determined by the IRubricatorFormulaData.Kind value.

Example

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

Add links to the Cubes and Metabase system assemblies.

Sub UserProc;
Var
    Mb: IMetabase;
    RubInst: IRubricatorInstance;
    ForLoo: IRubricatorFormulasLookup;
    FormulaData: IRubricatorFormulaData;
Begin
    Mb := MetabaseClass.Active;
    RubInst := Mb.ItemById("FC_COMM").Open(NullAs IRubricatorInstance;
    ForLoo := RubInst.CreateFormulasLookup;
    ForLoo.WhereKind := RubricatorFormulaDataKind.Params;
    FormulaData := ForLoo.LookupData;
    If FormulaData <> Null Then
        Debug.WriteLine("Formula is found. Parent key: " + FormulaData.ParentKey.ToString);
    Else
        Debug.WriteLine("Formula is not found");
    End If;
End Sub UserProc;

Executing the example creates an object that searches for formula parameters in the time series database. If parameters are found, key of parent formula is displayed in the console window.

See also:

IRubricatorFormulasLookup