ModeLevels: Boolean;
The ModeLevels property determines value of the MODELEVELS parameter in binding string.
The MODELEVELS parameter determines displaying of the By Levels Only selection mode.
On simultaneous use with the MODEELEMENTS parameter, the By Elements and Levels mode will be displayed.
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 dictionary drop-down list. The editor will be displayed in the Only by Elements selection mode.
See also: