Drag and drop to list component

I’m not sure, it works for me. Note, this is from Ignition 8.0.8. If you’re not getting any errors, then I’m not sure, you could try putting a Print statement in the drop function to insure you are getting the data transfered.

def drop(self,e):
    e.acceptDrop(e.getDropAction())
    paths = [[path] for path in e.getTransferable().getTransferData(ListOfQualifiedPath.FLAVOR)]
    print paths
    self._comp.data = system.dataset.addRows(self._comp.data,paths) if self._comp.data.columnCount > 0 else system.dataset.toDataSet(['Selected Tags'],paths)

DnD_Test.zip (12.1 KB)

its showing this error when i print paths

i am using ignition 8.0.15

That error is saying that the object returned from getTransferable() is None.

I would expect you to get that error with or without the print paths

Because of this error tag path its not showing in list component?
So what is the solution for now
Is there any thing to change?

I don’t know, you’re going to have to do some troubleshooting of your own. The code works for me in my version, and so I would expect it to work in yours.