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 this form, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is used as a data source for TabSheetBox. Workspace of a time series database with the OBJ_RUBRICATOR identifier must be loaded to UiErAnalyzer1. This time series database must 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, series from the OBJ_MODEL model are restored to the workspace of the time series database.
See also: