PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 25 → Obtaining the index of a table where a DnD was dropped?
Obtaining the index of a table where a DnD was dropped?
Iniciado por dev_JP, out., 14 2020 4:55 PM - 1 resposta
Membro registado
2 mensagems
Publicado em outubro, 14 2020 - 4:55 PM
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.
Membro registado
2 mensagems
Publicado em outubro, 14 2020 - 6:21 PM
Hello again,

I managed to find the TableInfoXY function which does exactly what I need, in case anyone else runs into the same issue.