handleDesignViewDrop()

Availability

Adobe Dreamweaver MX.

Description

Handles the drop operation when the user drags a table or view from the Database panel or a component from the Components panel to the Design view.

Arguments

componentRec

  • The componentRec argument is an object that contains the following properties:
    • The name property is the name of the tree node item.
    • The image property is an optional icon for the tree node item. If omitted, Adobe Dreamweaver MX uses a default icon.
    • The hasChildren property is a Boolean value that indicates whether the tree node item is expandable: if true, Adobe Dreamweaver MX displays the Plus (+) and Minus (-) buttons for the tree node item; if false, the item is not expandable.
    • The toolTipText property is optional tool tip text for the tree node item.
    • The isCodeViewDraggable property is a Boolean value that indicates whether the tree node item can be dragged and dropped into the Code view.
    • The isDesignViewDraggable property is a Boolean value that indicates whether the tree node item can be dragged and dropped into the Design view.

Returns

A Boolean value that indicates whether the drop operation was successful: true if successful; false otherwise.

Example

The following example determines if the component is a table or view, and then returns the appropriate bHandled value:

function handleDesignViewDrop(componentRec){ var bHandled = false; if (componentRec) { if ((componentRec.objectType == "Table")|| (componentRec.objectType == "View")) { alert("popup Recordset Server Behavior"); bHandled = true; } } return bHandled;}