Drop event in Smart Devices

Official Content
This documentation is valid for:

This event is executed when dropping content.

Syntax

Event control.Drop&<parameter> )
        Event_code
Endevent

The <parameter> can only be a variable. This parameter will be loaded with the corresponding value of the Drag Event parameter.

Example

Having an image in the WorkWithDevicesMeeting List layout, named RecicleBin, and the Drag event shown in the Drag event in Smart Devices example:

Event RecicleBin.Drop(&Meeting)
    Composite
        &MeetingId = &Meeting.MeetingId
        DeleteMeeting(&MeetingId)
        msg('Meeting deleted')
        SdActions.Refresh()
    EndComposite
EndEvent

Being DeleteMeeting a rest procedure that deletes the received meeting id. If there is a DropAccepted event, it will be executed first, and then the Drop event.

To complete the example, see Drop event in Smart Devices, DropAccepted event in Smart Devices and DragCanceled event in Smart Devices

Availability

As from GeneXus X Evolution 2 Upgrade 4.

See also




Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.