Commit 3b0f03ed authored by Carsten  Rose's avatar Carsten Rose
Browse files

Manual.rst: Update Drag and Drop documentation

parent 223f4ff3
......@@ -6357,14 +6357,16 @@ The form related to the example of part 1 ('div' or 'table'): ::
Form.parameter: dragAndDropOrderSql = {{!SELECT n.id AS id, n.ord AS ord FROM Note AS n WHERE n.grId={{grId:S0}} ORDER BY n.ord}}
QFQ iterates over the result set of `dragAndDropOrderSql`. The value of column `id` have to correspond to the dragged HTML
(given by `data-dnd-id`). Reordering always start with `orderInterval` and is incremented by `orderInterval` with each
record of the result set. The client reports the id of the dragged HTML element, the id of the hovered element and if
it is above or below the hovered element. This information is compared to the result set and applied where appropriate.
Only changes are applied.
element (given by `data-dnd-id`). Reordering always start with `orderInterval` and is incremented by `orderInterval` with each
record of the result set. The client reports a) the id of the dragged HTML element, b) the id of the hovered element and
c) the dropped position of above or below the hovered element. This information is compared to the result set and
changes are applied where appropriate.
Take care that the query of part 1 (display list) does a) select the same records and b) in the same order as the query
defined in part 2 (sort records) via `dragAndDropOrderSql`.
If you find that the reorder does not work at expected, those two sql queries are not identically.
Report Examples
---------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment