Drag-and-drop operations





The 1C:Enterprise system supports drag-and-drop operations. You can drag data between application fields. For example, you can drag list items between groups, drag data from a table box to a spreadsheet document field, or drag a list of selected files from Microsoft Windows Explorer to a form item.

The following fields support drag-and-drop operations: table box, spreadsheet document field, calendar field, and image field.

The availability of dragging depends on the application design (see the application documentation for details). The following section describes the standard drag-and-drop operations.

For each object, the application design defines whether it can be a source (you can drag from this object) and a target (you can drag to this object).

Dragging is performed using the mouse and is similar to the standard Microsoft Windows method. However, some applications can have extended drag-and-drop options.

The result of a drag-and-drop operation depends on the field type and the source data type.

The table summarizes the default availability settings for drag-and-drop operations.

Target

 

Source

Calendar field

Spreadsheet document field

Table box

Image field

Calendar field

No

Yes

No

No

Spreadsheet document field

No

Yes

No

No

Table box

No

Yes

Yes

No

Image field

No

No

No

No

When you drag an item to a spreadsheet document, the value is converted to its text presentation. Data that has the main presentation defined (for example, the code or description for a catalog) is converted to the main presentation value. For example, data from the calendar field has the Date value type and is converted to a string according to the current regional settings. If value table data is displayed in a table box, the value table row index is added to the spreadsheet document field.

When you drag data within a table box, note that in dynamic lists the order of rows cannot be changed. You can only drag hierarchical data from one group to another.

In a table box containing static data (tabular sections, value tables, value lists, or a value tree), you can change the order of rows.

The following rules apply:

  • If a row is dragged to a row above, it is placed before that row.
  • If a row is dragged to a row below, it is placed after that row.
  • If multiple rows are dragged, it is similar to dragging a single row, with the following exception: if the selection is not continuous but includes gaps, the rows are grouped (placed near each other). That group is placed according to rules 1 and 2.
  • To drag a row to a row before the last one, drop it before the row that is before the last one.

To learn whether an application has custom drag-and-drop features, consult its documentation.

Besides dragging between applications fields, 1C:Enterprise allows you to drag data from third-party applications to application fields. You can drag a text or a file list.


Comments
0
Add comment