# Dragging rows in Perspective Table

**URL:** <https://forum.inductiveautomation.com/t/dragging-rows-in-perspective-table/68922>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 23, 2023, 5:01pm UTC](https://forum.inductiveautomation.com/t/dragging-rows-in-perspective-table/68922 "2023-01-23T17:01:05Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [May 2, 2023, 2:24pm UTC](https://forum.inductiveautomation.com/t/dragging-rows-in-perspective-table/68922/11 "2023-05-02T14:24:34Z")

</div>

> [@Gavin\_Tipker](#):
>
> you have to select to bring it in as a json and not a dataset to get this to work.

ah yes, its a bit anonying to change positions in js for a dataset

> [@Gavin\_Tipker](#):
>
> Like say if I had two tables side by side and they both had "Name" and "Address" as the columns?

yes that would be possible, but i dont really have time to set this up any time soon. Maybe i got time somewhere next month?  
you'll have to combine this with the second script i put here

> [@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)

things to change in the second script are the query selectors for the scheduler to the one of the table you want to drop in (you should add in a domId to make this easier)

and ofc the ondrop event to instead change its data (or send a message or something)

---

_[View the full topic](https://forum.inductiveautomation.com/t/dragging-rows-in-perspective-table/68922)._
