RestoreLaner(Laner: ILaner);
Laner. Workspace of time series database.
The RestoreLaner method restores workspace of time series database from a model.
Executing the example requires a form, a button with the Button1 identifier on the form, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source for TabSheetBox. A working area of time series database with the OBJ_RUBRICATOR identifier should be loaded to UiErAnalyzer1. This time series database should contain a modeling container that includes a model with the OBJ_MODEL identifier based on factors of the time series database.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
ErAn: IEaxAnalyzer;
Laner: ILaner;
ActiveMetabase: IMetabase;
Pok, Cont: IMetabaseObjectDescriptor;
Model: IMsModel;
Begin
ActiveMetabase := MetabaseClass.Active;
Pok := ActiveMetabase.ItemById("OBJ_RUBRICATOR");
Cont := (Pok.Bind As IRubricator).ModelSpace;
Model := ActiveMetabase.FetchItemById("OBJ_MODEL", Cont.Key).Edit As IMsModel;
ErAn := UiErAnalyzer1.ErAnalyzer;
Laner := ErAn.Laner;
Model.RestoreLaner(Laner);
End Sub Button1OnClick;
On clicking the Button1 button, series from the OBJ_MODEL model are restored to the working area of the time series database.
See also: