IRubricator.HasScenarioDimension

Fore Syntax

HasScenarioDimension: Boolean;

Fore.NET Syntax

HasScenarioDimension: boolean;

Description

The HasScenarioDimension property determines whether time series database supports scenarios.

Comments

Available values:

Fore Example

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

Add links to the Cubes and Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    TSDB: IRubricator;
Begin
    mb := MetabaseClass.Active;
    TSDB := mb.ItemById("TSDB_SCENARIO").Edit As IRubricator;
    TSDB.HasScenarioDimension := False;
    (TSDB As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the TSDB_SCENARIO time series database will not support scenarios.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Cubes;

Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    TSDB: IRubricator;
Begin
    mb := Params.Metabase;
    TSDB := mb.ItemById["TSDB_SCENARIO"].Edit() As IRubricator;
    TSDB.HasScenarioDimension := False;
    (TSDB As IMetabaseObject).Save();
End Sub;

See also:

IRubricator