Official Content

Consider a case very similar to Drag and Drop in Applications Sample 2, but now the "Available Courses" grid is in a web component and the "Courses to Enroll" grid is in another.

1. The first web component looks as shown below. The "Available Courses" grid has the "Allow Drag" property set to TRUE:

image41ddsample

2. The web component where the "Courses to Enroll" grid is located has the following code. Note that the "in" parameters of the "Drop Event" are &CourseId and &CourseDescription, which are the same variables loaded by the grid from where the information is dragged.

Event CoursestoEnroll.Drop(&CourseId,&CourseDescription)
  &CoursetoEnrollId = &CourseId
  &CoursetoEnrollDescription = &CourseDescription
  CoursestoEnroll.Load()
EndEvent

Related links: Developing Drag and Drop in Web Panels









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