IRubricatorInstance.RefreshDimensions

Fore Syntax

RefreshDimensions;

Fore.NET Syntax

RefreshDimensions();

Description

The RefreshDimensions method refreshes dimensions of opened instance of time series database.

Fore Example

Executing the example requires that the repository contains a time series database with the OBJ153 identifier. Add links to the Metabase, Cubes system assemblies.

Sub UserProc;
    Var
        mb: IMetabase;
        RubObj: IMetabaseObject;
        Rubr: IRubricator;
        RubrInst: IRubricatorInstance;
    Begin
        mb := MetabaseClass.Active;
        RubObj := mb.ItemById("OBJ153").Edit;
        Rubr := RubObj As IRubricator;
        RubrInst := RubObj.Open(NullAs IRubricatorInstance;
        RubrInst.RefreshDimensions;
End Sub UserProc;

After executing the example the dimensions of the time series database with OBJ153 identifier will be updated.

Fore.NET Example

Executing the example requires that the repository contains a time series database with the OBJ153 identifier. Add a link to the Cubes system assembly.

Imports Prognoz.Platform.Interop.Cubes;

...

    Public Shared Sub Main(Params: StartParams);
    Var
        mb: IMetabase;
        RubObj: IMetabaseObject;
        Rubr: IRubricator;
        RubrInst: IRubricatorInstance;
    Begin
        mb := Params.Metabase;
        RubObj := mb.ItemById["OBJ153"].Edit();
        Rubr := RubObj As IRubricator;
        RubrInst := RubObj.Open(NullAs IRubricatorInstance;
        RubrInst.RefreshDimensions();
    End Sub;

The result of the example execution matches with that in the Fore example.

See also:

IRubricatorInstance