Official Content

Code that is run when dropping content from another control.

Syntax

Event <control>.Drop(&parameter1, &parameter2, ..., &parametern)

Event_code

Endevent

Where:

control

The name of the form control over the drop operation is performed.

&parameteri

Can only be variable. Each parameter will be loaded with the corresponding value from the Drag operation (from a grid with Allow Drag property or another control with Drag event in Web coded). If you are intending to drop information from a grid whose Allow Drag property is set (without having coded its Drag event), then the drop parameters (&parameter1, &parameter2, ..., &parametern) have to match exactly (in name and datatype) with n columns of the source grid. The columns order is not relevant. If any parameter is a SDT, the match is only by datatype, not by name.

Event_code

Code associated with the event. The parameters will be used in order to take some action based on that data received from Drag operation

Note: There is no difference between the navigation of any user event and the navigation of the Drop Event/Drag Event. The rules that apply to the former also apply to the latter.

Scope

Examples

Drag and Drop in Applications Sample 1
Drag and Drop in Applications Sample 2
Drag and Drop in Applications Sample 3
Drag and Drop in Applications Sample 4

See also

Drag event in Web
Developing Drag and Drop in Web Panels



Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant