Show contents 

Express > Express Assembly Interfaces > IEaxSelectionPadContext > IEaxSelectionPadContext.PopupSortAttribute

IEaxSelectionPadContext.PopupSortAttribute

Syntax

PopupSortAttribute(Attr: IDimAttribute);

Parameters

Attr. Dictionary attribute.

Description

The PopupSortAttribute method sorts hierarchy elements by specified attribute.

Comments

To sort hierarchy elements, use the IEaxSelectionPadContext.PopupSort method.

Example

Executing the example requires a form with the button named Button1, the EaxConfigurationPanel component named EaxConfigurationPanel1 and the UiErAnalyzer component that is a data source for EaxConfigurationPanel1. UiErAnalyzer1 is connected to the express report which contains a dimension with the D_TO identifier which is an MDM dictionary located in the MDM repository with the RDS identifier. This dictionary contains attribute with the TERRID identifier.

The example is a handler of the OnClick event for the Button1 component.

Add links to the Dimensions and Metabase system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    mb: IMetabase;
    Dim: IDimensionModel;
    Attr: IDimAttribute;
    Attrs: IDimAttributes;
    sps: ISystemPadContext;
    PadContext: IEaxSelectionPadContext;
Begin
    mb := MetabaseClass.Active;
    Dim := mb.ItemByIdNamespace("D_TO", MB.ItemById("RDS").Key).Bind As IDimensionModel;
    Attrs := Dim.Attributes;
    Attr := Attrs.FindById("TERRID");
    sps := EaxConfigurationPanel1.GetActiveContext;
    PadContext := sps As IEaxSelectionPadContext;
    PadContext.PopupSortAttribute(Attr);
    Debug.WriteLine("Sorting by the TERRID attribute is made in dimension "
        + PadContext.DimSelection.Dimension.Name);
End Sub Button1OnClick;

On the side panel go to the Selection tab group and selection dimension. On clicking the button sorting of dimension elements is made by the TERRID attribute.

See also:

IEaxSelectionPadContext