# Drag and drop tags from tree view to power chart in perspective

**URL:** <https://forum.inductiveautomation.com/t/drag-and-drop-tags-from-tree-view-to-power-chart-in-perspective/85357>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 7, 2024, 10:07am UTC](https://forum.inductiveautomation.com/t/drag-and-drop-tags-from-tree-view-to-power-chart-in-perspective/85357 "2024-02-07T10:07:57Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [February 8, 2024, 7:45am UTC](https://forum.inductiveautomation.com/t/drag-and-drop-tags-from-tree-view-to-power-chart-in-perspective/85357/5 "2024-02-08T07:45:35Z")

</div>

You can define the root path for the tags, so only tags below it can be selected. Wouldn't it be easier to move the (dis)allowed tags somewhere else?

Are you familiar with js?

You also seem to be trying to target the main components, but for your tree view you'll need to target every row

Take a look at this one, hre i d&d a table its rows onto a scheduler with its addevent,  
i guess it should be similar

> [@Perspective Scheduler - Drag and Drop From Table](https://forum.inductiveautomation.com/t/perspective-scheduler-drag-and-drop-from-table/71853/12):
>
> yes you can setup a mutation observer that triggers on domchanges ive done something similar here: i'll fix up the script i have in a bit edit: here you go! a table , a schedule and the markdown are in here, with the dragdrop in de markdown and an (example of) AddEvent in de schedule. [tabledropschedule.zip](https://forum.inductiveautomation.com/uploads/short-url/vraW8MysI6UtTLmks7yMcZEDSM8.zip) (12.6 KB)

---

_[View the full topic](https://forum.inductiveautomation.com/t/drag-and-drop-tags-from-tree-view-to-power-chart-in-perspective/85357)._
