PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Obtaining the index of a table where a DnD was dropped?
Obtaining the index of a table where a DnD was dropped?
Débuté par dev_JP, 14 oct. 2020 16:55 - 2 réponses
Membre enregistré
6 messages
Popularité : +3 (3 votes)
Posté le 14 octobre 2020 - 16:55
Hey everyone. Hope this as not been asked before.

In essence, what I want to accomplish is assigning employees to a workstation using the drag and drop mechanism. The table on the left contains all the employees, and the table on the right contains all the workstations. A user should be able to drag an employee from the left table into the table on the right and assign that employee to the workstation it was dropped on.

However, I'm unsure on how to proceed with this. As far as I'm aware, there's no way of knowing the index of the row the employee was dropped on. I'm able to get the DnD working and the target table recognizes that a DnD action occurred, but there's no way for me to get the index of the target row to actually create the association.

Did someone else attempt something like this? Is there a better way to do what I want to do?

Thanks in advance.
Membre enregistré
6 messages
Popularité : +3 (3 votes)
Posté le 14 octobre 2020 - 18:21
Hello again,

I managed to find the TableInfoXY function which does exactly what I need, in case anyone else runs into the same issue.
Membre enregistré
94 messages
Posté le 27 mai 2021 - 15:42
Yes, this is exactly what I need.
Thanks a lot !!