LightWeight: Boolean;
LightWeight: boolean;
The LightWeight property determines whether to load factors dynamically.
If LightWeight = True, factors are loaded dynamically (only when the last level of factors tree is expanded). Use the dynamic loading to speed up loading of the factors tree.
Executing the example requires that the repository contains a time series database with the FC identifier. Add links to the Metabase, Cubes system assemblies.
Sub UserProc;
Var
mb: IMetabase;
RubDes: IMetabaseObject;
Rub: IRubricator;
Begin
mb := MetabaseClass.Active;
RubDes := mb.ItemById("FC").Edit;
Rub := RubDes As IRubricator;
Rub.LightWeight := True;
RubDes.Save;
End Sub UserProc;
After executing the example database time series are loaded dynamically.
Executing the example requires that the repository contains a time series database with the FC identifier.
Imports Prognoz.Platform.Interop.Cubes;
…
Public Shared Sub Main(Params: StartParams);
Var
Mb: IMetabase;
RubDes: IMetabaseObject;
Rub: IRubricator;
Begin
Mb := Params.Metabase;
RubDes := mb.ItemById["FC"].Edit();
Rub := RubDes As IRubricator;
Rub.LightWeight := True;
RubDes.Save();
End Sub;
After executing the example database factors are loaded dynamically.
See also: