MultiLevels: Boolean;
MultiLevels: boolean;
The MultiLevels property determines value of the MULTILEVELS parameter in binding string.
The MULTILEVELS parameter determines a multiple selection inOnly by Levels display mode.
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.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.
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.MultiLevelsDefined := True;
DimComboBinding.MultiLevels := True;
Return DimComboBinding.AsString;
End Function CreateDimComboBidning;
See also: