FormControl.dragDrop Method [AX 2012]

Determines whether drag-and-drop operations are enabled or disabled for the control.

public int dragDrop([int value])

Run On

Client

Parameters

value
Type: int
An integer value that indicates whether drag-and-drop behavior is enabled; optional.

Return Value

Type: int
1 if drag-and-drop operations are enabled; otherwise, false.

The following example shows how to return or set the value that indicates whether drag-and-drop behavior is enabled.

boolean dDragDrop; 
 
// The ctrl variable was previously assigned  
// as a FormControl value. 
 
// Retrieve the drag-and-drop-enabled value. 
dDragDrop = ctrl.dragDrop(); 
 
// Set the drag–and–drop-enabled value. 
ctrl.dragDrop(true);

Community Additions

ADD
Show: