HasScenarioDimension: Boolean;
HasScenarioDimension: boolean;
The HasScenarioDimension property determines whether time series database supports scenarios.
Available values:
True. Default value for created time series databases. Scenarios are supported.
False. Scenarios are not supported. It allows for increased processing speed of time series database.
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.
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: