C:\DITA\WKFS_oXygen_Files\fragments\webhelp.fragment.head.xml
Jump to main content C:\DITA\WKFS_oXygen_Files\fragments\webhelp.fragment.before.body.xml

# Context Menu

Certain Requirements Editor windows have contextually based (right-click) menus. Menu items that appear when right-clicking are dependent on the window you are currently working in and the document you have selected.

## Outline Editor Context Menu

Menu Item | Description
--- | ---
Add Child Element | Adds a child element to the selected element. The subsequent list of elements changes contextually based on the selected element. This ensures that you cannot add a child that would be invalid according to the schema. When the list of elements is thirty (30) or greater, the Add Element dialog box is displayed instead of the context menu. This allows you to quickly filter through the list and add the desired element as a child.
Add Attribute | Adds a new attribute to the selected element. The subsequent list of attributes changes contextually based on the selected element. This ensures that you cannot add an attribute that would be invalid according to the schema.
Insert Element Before | Adds an element directly before the selected element. The subsequent list of elements changes contextually based on the selected element. This ensures that you cannot add a child that would be invalid according to the schema.
Insert Element After | Adds an element directly after the selected element. The subsequent list of elements changes contextually based on the selected element. This ensures that you cannot add a child that would be invalid according to the schema.
Add Condition | Adds a Condition rule to the selected element. Adding a Condition rule creates a precedence override on the selected element.
Add Iterator | Adds an Iterator rule to the selected element. Adding an Iterator rule creates a precedence override on the selected element.
Add Choose | Adds a Choose rule to the selected element. Adding a Choose rule creates a precedence override on the selected element.
Add Note | Adds a child Note element to the selected element
Add WCAG Note | Adds a child WCAG Note element to the selected element
Cut (Ctrl+X) | Copies the selected item to the clipboard and then removes it from its current location. See also: Cut/Copy/Paste
Copy (Ctrl+C) | Copies the selected item to the clipboard. See also: Cut/Copy/Paste
Paste (Ctrl+V) | Pastes the content of the clipboard to the currently selected item. When pasting content, a validation check is performed against the schema. This ensures the content is valid in the selected location.
Delete (Del) | Removes the selected element/attribute.
Duplicate (Ctrl+D) | Creates a duplicate copy of the selected element. The duplicate element is placed directly following the selected element.
Copy XPath Location | Copies the XPath of the selected element or attribute to the clipboard
Go to Field Grid | Displays and highlights the selected rule in the Field Grid tab
View Content Dependencies | Displays a window containing a list of all Content Dependencies within the document. Items within the list can be copied to the Clipboard.
Expand | Expands the selected element to show all child elements.
Collapse | Collapses the selected element to hide all child elements.
Expand All Attributes | Expands the selected element to show all attributes.
Collapse All Attributes | Collapses the selected element to hide all attributes.

## Transaction Tab Context Menu

The following items are available by right-clicking a node within the Transaction Elements tree.
Note: When you add a collection element under the Txn node, the container node is automatically populated with a child element of the added collection node. For example, a Borrowers element automatically adds a Borrower child element.

Menu Item | Description
--- | ---
Collapse Child Nodes | Hides all child nodes (recursively) of the selected node
Expand Child Nodes | Shows all child nodes (recursively) of the selected node
Populate this Element from File... | Allows you to browse for an existing XML file containing data for the element. For more information, refer to Populating an element from a file.
Populate this Element and its Children from File... | Allows you to browse for an existing XML file containing data for the element and its children
Add Child Element | Provides a schema-aware list of elements that can be inserted as children of the selected element. The following example illustrates how the Add Child Element list is filtered when being applied to the MortgageBroker element. Note: You can add custom element and attribute nodes to your Transaction tree. For more information, refer to Adding Custom Transaction Nodes.
Duplicate (Ctrl+D) | Allows you to duplicate the selected child node. When a duplicate is made, both the original element and the duplicate are appended numerically, as shown in the following example. Note: The Duplicate Element command is not available for top level elements.
Copy (Ctrl+C) | Copies the selected node(s) to the Clipboard.
Paste (Ctrl+V) | Pastes previously copied element(s) from the Clipboard. If the elements are not valid for the selected node, this option is disabled.
Delete (Del) | Allows you to delete the selected element. All children of the selected element are also deleted.
Remove Attributes with Null Values | Removes all attributes of the selected node that contain null values A message containing the results is displayed when complete.
Remove Attributes with Null Values (Recursive) | Removes all attributes of the selected node and children nodes that contain null values A message containing the results is displayed when complete.
Remove Unsupressed Values | Removes all unsuppressed values of the selected node A message containing the results is displayed when complete.
Remove Unsupressed Values (Recursive) | Removes all unsuppressed values of the selected node and all its children A message containing the results is displayed when complete.

## Transaction Attributes Context Menu

The following commands are available when right-clicking a Transaction Attribute.

Menu Item | Description
--- | ---
Add Attribute | Displays the Add Attribute window, allowing you to select an attribute to add to the element selected within the Transaction Elements tree.
Cut (Ctrl+X) | Cuts the attribute from the selected location and places it in the Clipboard.
Copy (Ctrl+C) | Allows you to copy the selected attribute to the Clipboard. If multiple attributes are selected, all attributes are copied.
Paste (Ctrl+V) | Allows you to paste an attribute from the Clipboard. If multiple attributes exist in the Clipboard, all attributes are pasted.
Delete (Del) | Copies the XPath of the selected attribute to the Clipboard.
Copy XPath Location | Allows you to copy the location of the XPath

## Validation Errors

The following commands are available when right-clicking a node after selecting one or more error rows.

Menu Item | Description
--- | ---
Delete invalid node(s) | When selected, a dialog box is displayed asking confirmation to delete the nodes. Selecting Yes removes the corresponding elements and attributes, but skips Enumeration values if any are selected in the errors list.

C:\DITA\WKFS_oXygen_Files\fragments\webhelp.fragment.after.body.xml