Show contents 

Express > Express Assembly Interfaces > IEaxSelectionPadContext > IEaxSelectionPadContext.HierarchyRenameElement

IEaxSelectionPadContext.HierarchyRenameElement

Syntax

HierarchyRenameElement(Element: IDimElement);

Parameters

Element. Dimension element.

Description

The HierarchyRenameElement method renames current hierarchy element.

Comments

To add a new element to the hierarchy, use the IEaxSelectionPadContext.HierarchyNewElement 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. UiErAnalyzer is connected to an express report from repository.

Add a link to the Dimensions system assembly.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    sps: ISystemPadContext;
    Element: IDimElement;
Begin
    sps := EaxConfigurationPanel1.GetActiveContext;
    Element := (sps As IEaxSelectionPadContext).FocusedElement;
    (sps As IEaxSelectionPadContext).HierarchyRenameElement(Element);
End Sub Button1OnClick;

On the side panel go to the Selection tab group and select an element in the selected dimension. On clicking the button name of dimension selected element will pass to edit mode.

See also:

IEaxSelectionPadContext