DisabledManagedOptions: LanerBoxManagedOptions;
DisabledManagedOptions: Prognoz.Platform.Interop.Express.LanerBoxManagedOptions;
The DisabledManagedOptions property determines whether the settings defined for the LanerBox component should be used.
The DisabledManagedOptions value is requires to set before settings a data source for a component. By default LanerBox uses its own settings instead of data source settings.
Executing the example requires a form, a button named Button1 placed on this form, the UiErAnalyzer component with the UiErAnalyzer1 identifier and the LanerBox component with the LanerBox1 identifier. UiErAnalyzer1 is used as a data source for LanerBox1. The repository contains a workbook with the WB_LANER identifier. Add link to the Metabase system assembly.
The example is a handler of the OnClick event for the Button1 button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Mb: IMetabase;
WbObj: IMetabaseObjectDescriptor;
Begin
UiErAnalyzer1.Active := False;
LanerBox1.DisabledManagedOptions := LanerBoxManagedOptions.LanerEndDate Or LanerBoxManagedOptions.LanerStartDate;
Mb := MetabaseClass.Active;
WbObj := mb.ItemById("WB_LANER");
UiErAnalyzer1.Object := WbObj;
UiErAnalyzer1.Active := True;
End Sub Button1OnClick;
After executing this example the WB_LANER workbook is loaded to LanerBox1. The period of data displaying depends on settings defined in the loaded workbook,LanerBox1 settings are ignored.
Executing the example requires a .NET form, a button named Button1 placed on this form, the UiErAnalyzerNet component with the UiErAnalyzerNet1 identifier and the LanerBoxNet component with the LanerBoxNet1 identifier. UiErAnalyzerNet1 is a data source for LanerBoxNet1. The repository contains a workbook with the WB_LANER identifier.
The example is a handler of the Click event for the Button1 button.
Imports Prognoz.Platform.Interop.Laner;
…
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
Mb: IMetabase;
WbObj: IMetabaseObjectDescriptor;
Begin
UiErAnalyzerNet1.Active := False;
LanerBoxNet1.DisabledManagedOptions := LanerBoxManagedOptions.lbmoLanerEndDate Or LanerBoxManagedOptions.lbmoLanerStartDate;
Mb := Self.Metabase;
WbObj := mb.ItemById["WB_LANER"];
UiErAnalyzerNet1.Object := WbObj;
UiErAnalyzerNet1.Active := True;
End Sub;
After executing the example the WB_LANER workbook is loaded to LanerBoxNet1. The period of data displaying depends on settings defined in the loaded workbook,LanerBoxNet1 settings are ignored.
See also: