Express > Express Assembly Interfaces > ILanerBox > ILanerBox.DisabledManagedOptions
DisabledManagedOptions: 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 with the Button1 button, the UiErAnalyzer component named UiErAnalyzer1 and the LanerBox component named LanerBox1. UiErAnalyzer1 is a data source for LanerBox1. The repository contains a workbook with the WB_LANER identifier.
Add a link to the Metabase system assembly.
The example is a handler of the OnClick event for Button1.
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 the example the WB_LANER workbook is loaded to LanerBox1. The period of data displaying depends on settings defined in the loaded workbook, settings of the LanerBox1 component are ignored.
See also: