MultiLevels: Boolean;
The MultiLevels property determines value of the MULTILEVELS parameter in binding string.
The MULTILEVELS parameter determines whether multiple selection is available in the Only by Levels display mode.
Executing the example requires a calendar dictionary with the CALENDAR identifier.
Function CreateDimComboBidning: String;
Var
BM: IBindingManager;
DimComboBinding: IBindingDimCombo;
Begin
BM := New BindingManager.Create;
DimComboBinding := BM.CreateByUi("DimCombo") As IBindingDimCombo;
DimComboBinding.Object := "CALENDAR";
DimComboBinding.MultiLevelsDefined := True;
DimComboBinding.MultiLevels := True;
Return DimComboBinding.AsString;
End Function CreateDimComboBidning;
The function generates a binding string to use value editor as a dictionary drop-down list. The option of multiple selection in the Only by Levels display mode will be enabled.
See also: