IBindingDimCombo.Namespace_

Syntax

Namespace_: String;

Description

The Namespace_ property determines value of the NAMESPACE parameter in binding string.

Comments

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:

For example:

NAMESPACE="OBJ14046.OBJ14047.OBJ14050"

Example

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(10).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:

IBindingDimCombo