IBindingDimCombo.ModeLevels

Fore Syntax

ModeLevels: Boolean;

Fore.NET Syntax

ModeLevels: boolean;

Description

The ModeLevels property determines value of the MODELEVELS parameter in binding string.

Comments

The MODELEVELS parameter determines displaying of theOnly by Levels selection mode.

On simultaneous use with the MODEELEMENTS parameter, theBy Elements and Levels level will be displayed.

Fore Example

Executing the example requires a calendar dictionary with the CALENDAR identifier.

Function CreateDimComboBidning(Dimension: IMetabaseObjectDescriptor): String;
Var
    BM: IBindingManager;
    DimComboBinding: IBindingDimCombo;
Begin
    BM := 
New BindingManager.Create;
    DimComboBinding := BM.CreateByUi("DimCombo"As IBindingDimCombo;
    DimComboBinding.Object := 
"CALENDAR";
    
DimComboBinding.ModeLevelsDefined := True;
    DimComboBinding.ModeLevels := 
True;
    Return DimComboBinding.AsString;
End Function CreateDimComboBidning;

The function generates a binding string to use the value editor as a drop-down list of the dictionary. The editor will be displayed in the Only by Levels selection mode.

Fore.NET Example

The requirements and result of the Fore.NET example executing match with those in the Fore example. Use Fore.NET analogs instead of Fore components.

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.ForeSystem;

Function CreateDimComboBidning(Dimension: IMetabaseObjectDescriptor): String;
Var
    BM: IBindingManager;
    DimComboBinding: IBindingDimCombo;
Begin
    BM := 
New BindingManager.Create();
    DimComboBinding := BM.CreateByUi("DimCombo"As IBindingDimCombo;
    DimComboBinding.Object := 
"CALENDAR";
    DimComboBinding.ModeLevelsDefined := 
True;
    DimComboBinding.ModeLevels := 
True;
    Return DimComboBinding.AsString;
End Function CreateDimComboBidning;

See also:

IBindingDimCombo