Declaration Using Contextual Menu in Screen Tree View

A contextual menu is a menu in a graphical user interface (GUI) that appears upon user interaction, such as a right-click mouse operation.

In the Tree view, you can perform various actions such as declaring an element, adding an element as criteria, setting an element as a direct parent or target element, removing an element from criteria, deleting an element declaration, and so on by using right-click on an element.

When you right-click on any element, the Declare Element button is displayed. If you click this button, the element is declared under the Declared Elements.

If an element is not related to your selected element, the element can’t be added as criteria and the Add to criteria button is disabled.

If you right-click on the parent or child of the selected element, the following options are displayed:
  • Declare Element

  • Set as direct parent

  • Set as target element

  • Remove from criteria

If an element can’t be set as a direct parent, the Set as direct parent button is disabled.

An element that is created is added to the left side panel, and the selection is placed on the newly declared element depending on the target (parent or child) of the current selection. This means that the right side panel takes the information of the declared element if you right-click on a node that is not a parent or child of your current selected element.

When the parent element is already declared and if you right-click on that element and declare the element, you can’t view the Declare Element button as the element is already declared.

If you want to delete the declaration of a declared element, right-click on the “target” of the element, which is the tree node with the colored dot when you have a selected element and then select the Delete declaration button.

If a declared element is used as criteria in another declaration and you delete that element, all associated criteria are removed in the other declarations that cause issues with their recognition.