ExecuteDragDrop (open)

Do a drag-drop onto another component

Syntax

LOADLIB "mod::tollium/lib/testframework.whlib";

BOOLEAN FUNCTION ExecuteDragDrop(OBJECT sourcecomp, VARIANT selection, OBJECT targetcomp, RECORD options)

Parameters

OBJECT sourcecomp

Component with dragged items

VARIANT selection

Rowkey(s) of dragged items (lists), selected overlay(s) for table

OBJECT targetcomp

Target list component

RECORD options

Options

allowfailure

Allow drop failure

dropeffect

Drop effect: one of "move", "link", "copy"

droplocation

Drop location for lists: one of "ontarget", "appendchild", "insertbefore" (only for lists)

target

Target to drop onto

  • Lists: rowkey of target row (if not specified, dropped in empty space)
  • Tables: table cell to drop on (if not specified, not dropped on a specific cell)

Return value

BOOLEAN

Whether a drop handler was found and executed