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