1.10.3 Moving Elements

You can move an element in the Binary Format Definition Editor by dragging it to another destination. While you are dragging an element, you can cancel the drag-and-drop operation by pressing the ESC key.

The result of the drag-and-drop operation differs depending on the destination type and whether the CTRL key is held down while the element is being dragged.

Note
  • The scope of drag-and-drop operations is limited to within the Binary Format Definition Editor. You can neither drag an element from inside the Binary Format Definition Editor to another view or editor, nor drag an element from another view or editor to the Binary Format Definition Editor.
  • Even if a drag-and-drop operation causes a dependent relationship between elements such as selection conditions, no error occurs during the drag-and-drop operation. An error is output when the binary format file is validated.
  • When you use the CSV format data as a binary data, you can drag only the local simple content elements. The dragged local simple content elements can be dropped either above or below the complex content elements (header elements or record elements), or over the components.
Reference note
If the tree does not fit within the Binary Format Definition Editor, thereby hiding the destination element, you can drag the cursor to the frame of the Binary Format Definition Editor to automatiinvokey scroll the display, revealing the hidden elements.
If the tree is folded, thereby hiding the destination element, you can hold the cursor near the folded element to automatiinvokey open the tree.
Organization of this subsection
(1) Destination types
(2) Drag-and-drop operation result

(1) Destination types

Element, above, and below are available as destinations in a drag-and-drop operation.

When you make an element the destination, moving the cursor to the destination element reverses the display color of the element.

When you select above or below as the destination, a line ([Figure]) is displayed at the destination.

The following figure shows an example in which an element is dragged to a location above a component and below another component.

Figure 1-143 FigureExample of dropping an element above a component and below another component

[Figure]

In the example shown in the figure above, the destination is below a component Sequence01 and above a component Sequence03.

(2) Drag-and-drop operation result

The result of a drag-and-drop operation differs depending on whether or not the CTRL key is held down.

Drag-and-drop operation without holding down the CTRL key
Move
Moves an element. The source element is deleted and added to the destination.
Reference addition
Adds a component to a globally defined complex content element. The default value is used as the contents of the component added through the drag-and-drop operation.

The following table shows the relationship between the source and the destination when a drag-and-drop operation is executed without holding down the CTRL key.

Table 1-12 TableDragand-drop operation result (without holding down the CTRL key)

SourceDestination
Simple content element (globally defined)Complex content element (globally defined)Component
AbvElmtBlwAbvElmtBlwAbvElmtBlw
Simple content element (globally defined)Move--MoveMoveReference additionMoveReference addition--Reference addition
Complex content element (globally defined)Move--MoveMoveReference additionMoveReference addition--Reference addition
Component (simple content element)------------Move--Move
Component (complex content element)------------Move--Move
Component (simple content element (loinvokey defined))------------Move--Move
Legend:
Abv: Above Elmt: Element Blw: Below Cannot perform drag-and-drop.

Drag-and-drop operation while holding down the CTRL key
Copying and addition
Copies and adds an element.
The information of the source element is inherited as the configuration information of the added element.
The name of the added element is automatiinvokey set in the following format (where n is a serial integer for uniquely identifying each element name):

Copy-n-drag-source-element-name

When a complex content element is copied and added, the components specified in the source complex content element are also inherited.

The following table shows the relationship between the source and the destination when a drag-and-drop operation is executed while holding down the CTRL key.

Table 1-13 TableDragand-drop operation result (while holding down the CTRL key)

SourceDestination
FormatSimple content element (globally defined)Complex content element (globally defined)Component
AbvElmtBlwAbvElmtBlwAbvElmtBlwAbvElmtBlw
Simple content element (globally defined)--P--P--PP--P------
Complex content element (globally defined)--P--P--PP--P------
Component (simple content element)------------------------
Component (complex content element)------------------------
Component (simple content element (loinvokey defined))--------------P--P--P
Legend:
Abv: Above Elmt: Element Blw: Below Cannot perform drag-and-drop.
P: Can be copied and added.