# Drag and drop to list component

**URL:** <https://forum.inductiveautomation.com/t/drag-and-drop-to-list-component/44077>\
**Category:** Ignition\
**Created:** [March 4, 2021, 5:51am UTC](https://forum.inductiveautomation.com/t/drag-and-drop-to-list-component/44077 "2021-03-04T05:51:54Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [March 8, 2021, 2:19pm UTC](https://forum.inductiveautomation.com/t/drag-and-drop-to-list-component/44077/27 "2021-03-08T14:19:06Z")

</div>

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.

```auto
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](https://forum.inductiveautomation.com/uploads/short-url/vt3MNA4rmYzohvkKfllYbVnTy8D.zip) (12.1 KB)

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [March 8, 2021, 2:38pm UTC](https://forum.inductiveautomation.com/t/drag-and-drop-to-list-component/44077/28 "2021-03-08T14:38:11Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/d/4d0e149a734980c579b424b3ac76baead64aa3e3.png)

its showing this error when i **print paths**

i am using ignition 8.0.15

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [March 8, 2021, 2:59pm UTC](https://forum.inductiveautomation.com/t/drag-and-drop-to-list-component/44077/29 "2021-03-08T14:59:53Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [March 8, 2021, 3:01pm UTC](https://forum.inductiveautomation.com/t/drag-and-drop-to-list-component/44077/30 "2021-03-08T15:01:32Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [March 8, 2021, 3:03pm UTC](https://forum.inductiveautomation.com/t/drag-and-drop-to-list-component/44077/31 "2021-03-08T15:03:02Z")

</div>

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.

[Previous page](https://forum.inductiveautomation.com/t/drag-and-drop-to-list-component/44077.md?page=1)
