Namespace_: String;
The Namespace_ property determines value of the NAMESPACE parameter in binding string.
The NAMESPACE parameter determines a path to the dictionary created in a container or hierarchy of nested containers.
Parameter value is set in the binding string using the Namespace_ property or manually as follows:
NAMESPACE="VALUE"
Where:
VALUE. Parameter value that determines a sequence of nested objects to dictionary as follows: <container_1 identifier>.<container_2 identifier>. ... .<container_n identifier>.
For example:
NAMESPACE="OBJ14046.OBJ14047.OBJ14050"
Executing the example requires that the repository contains a regular report with the REGULAR_REPORT identifier, a container with the CONTAINER_1 identifier, which contains a container with the CONTAINER_2 identifier with a dictionary with the DIMENSIONS identifier.
Add links to the Metabase, Report and Tab system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Report: IPrxReport;
BM: IBindingManager;
DimComboBinding: IBindingDimCombo;
Tab: ITabSheet;
Style: ITabCellStyle;
Binding: IBindingValue;
Begin
// Get the current repository
MB := MetabaseClass.Active;
// Get regular report
Report := MB.ItemById("REGULAR_REPORT").Edit As IPrxReport;
// Get cell style in upper left corner of active report sheet
Tab := (Report.ActiveSheet As IPrxTable).TabSheet;
Style := Tab.Cell(1, 0).Style;
// Create and set up value editor as a drop-down list
BM := New BindingManager.Create;
Binding := BM.CreateByUi("DimCombo");
DimComboBinding := Binding As IBindingDimCombo;
DimComboBinding.Object := "DIMENSIONS";
DimComboBinding.Namespace_ := "CONTAINER_1.CONTAINER_2";
Style.Binding := DimComboBinding.AsString;
// Save changes
(Report As IMetabaseObject).Save;
End Sub UserProc;
After executing the example, the value editor is set for the A1 cell in regular report as a dictionary drop-down list contained in the hierarchy of nested containers.
See also: