ILanerBox.DisabledManagedOptions

Syntax

DisabledManagedOptions: LanerBoxManagedOptions;

Description

The DisabledManagedOptions property determines whether the settings defined for the LanerBox component should be used.

Comments

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.

Example

Executing the example requires a form, a button named Button1 on the 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 the 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.

See also:

ILanerBox