
You use the Drag-and-Drop feature to move (cut or copy) data at runtime within and between individual user interface building blocks (UIBBs) and generic user-interface building blocks (GUIBBs).
For example, you use Drag-and-Drop to move a row of data from one list to another list.
You can enable and disable Drag-and-Drop for individual UIBBs and GUIBBs and also enable the drag function and drop function separately.
With this function, you can perform the following actions:
Move data between a freestyle UIBB, List, and Hierarchical List
Move data from a freestyle UIBB, List, or Hierarchical List to a Form
Move nodes within a Hierarchical List
The following is available with the next release of FPM: Movement of data between Hierarchical Lists and movement of data from a freestyle list UIBB to a List GUIBB.
The Form GUIBB behaves differently from other GUIBBs. The Form GUIBB acts only as a drop target, that is, you can drop data on to a Form GUIBB but it is not possible to drag (move) data from a Form GUIBB.
Using Drag-and-Drop
The UIBB or GUIBB from which you move data is known as the source. The UIBB or GUIBB that receives the data is known as the target. At runtime, in the table or list whose data you want to move, select the required rows (hold down the SHIFT key to select multiple rows) or nodes. Hold down the mouse button and move the data to the target table, list, or form.
A line indicator in the target table or list helps you place the data in the required location. You can also drop the data onto a row (the row is highlighted) in a table or list. If you drop data on a form, the whole form or group (depending on the layout of the form) is highlighted, indicating that you can now drop the data.
The data is now either copied or moved (depending on how the feeder class is configured) to the target table, list, or form.
If you try to move data to a table, list or form that is not defined as a drop target (or whose tags do not match), the cursor changes to a prohibitory sign and data transfer is not possible.
Enabling Drag-and-Drop
To use Drag-and-Drop between GUIBBs and UIBBs, Drag-and-Drop must be enabled in the following areas:
The feeder class that provides the GUIBB with data or in the Web Dynpro component view of a UIBB
The Enable Drag and Enable Drop checkboxes in the configuration editor
Drag-and-Drop is primarily enabled in the feeder class and its attributes are displayed as the Drag-and-Drop attributes in the configuration editor. You can edit these attributes. If no Drag-and-Drop attributes are defined in the feeder class, no Enable Drag and Enable Drop checkboxes are displayed in the configuration editor.
To display the Drag-and-Drop attributes in the configuration editor, select the top element in the Hierarchy of a List or Hierarchical List (Tree) GUIBB. Depending on the layout of a Form GUIBB, you can also select a group. The system displays the following attributes:
Enable Drag , Enable Drop
This indicates whether the drag (or drop) action is enabled for the GUIBB. Selection of this checkbox allows data to be dragged (or dropped) from the GUIBB to another UIBB or GUIBB and allows data to be moved within the GUIBB.
(Drag) Tags , (Drop) Tags
Tags form part of the drag source (or drop target) data. It is possible to add multiple tags using a space between each value.
You can only move data between UIBBs and GUIBBs that have a common Tag value. For example, if Table A has a Tag value Orders , you can only drop data on to Table B if Table B also contains a Tag value Orders . It is possible that Table B also has other Tag values as well as Orders .
(Drag) Scope , (Drop) Scope
Scope forms part of the drag source (or drop target) data, indicating whether data can be dragged (or dropped) from one UIBB or GUIBB to another UIBB or GUIBB ( Global ) or only within the same UIBB or GUIBB ( Local ).
The changes you make to the Drag-and-Drop attributes in the configuration editor have priority over the Drag-and-Drop attributes defined in the feeder class. A feeder class may be enabled for Drag-and-Drop and provide data to more than one GUIBBs. However, you might not want all GUIBBs to be Drag-and-Drop enabled (you might want some GUIBBs to be displayed as read-only).