IBindingDimCombo.ModeElements

Syntax

ModeElements: Boolean;

Description

The ModeElements property determines value of the MODEELEMENTS parameter in binding string.

Comments

The MODEELEMENTS parameter determines displaying of the By Elements Only selection mode.

On simultaneous use with the MODELEVELS parameter, the By Elements and Levels mode is displayed.

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.ModeElementsDefined := 
True;
    DimComboBinding.ModeElements := 
True;
    Return DimComboBinding.AsString;
End Function CreateDimComboBidning;

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

See also:

IBindingDimCombo