# Need to Move the Multiple selected row data from the table component

**URL:** <https://forum.inductiveautomation.com/t/need-to-move-the-multiple-selected-row-data-from-the-table-component/90724>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 22, 2024, 7:35am UTC](https://forum.inductiveautomation.com/t/need-to-move-the-multiple-selected-row-data-from-the-table-component/90724 "2024-05-22T07:35:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeffin\_Kumar1](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@Jeffin\_Kumar1](https://forum.inductiveautomation.com/u/Jeffin_Kumar1)\
**Post date:** [May 22, 2024, 7:35am UTC](https://forum.inductiveautomation.com/t/need-to-move-the-multiple-selected-row-data-from-the-table-component/90724/1 "2024-05-22T07:35:57Z")

</div>

Hi All,  
I need to move the Multiple selected row data from the table component. Currently I'm was able to take single row data from the table.

```python
	try:
		selectedRow = self.props.selection.selectedRow
		system.perspective.print("selectedRow"+ str(selectedRow))
		pydata = system.dataset.toPyDataSet(self.props.data)
		countWI = 0
		if(len(pydata) > 0):
			for rows in range(len(pydata)):
			     if(selectedRow == rows):
					Id= pydata[rows]['Id']
					system.perspective.print(str(Id))
					workorderNo = pydata[rows]['WorkOrderNumber']
					self.view.params.Workorder = workorderNo
					system.perspective.print(str(workorderNo))
					system.perspective.openDock("OrderOP",params = {"Workorder":workorderNo})
					break
		messageType = 'ResourceAllocation'   			
		payload = {'Id':(Id),'WorkorderNo':str(workorderNo)}		 			
		system.perspective.sendMessage(messageType, payload, scope = 'page' )
	except:
			exc_type, exc_obj,tb = sys.exc_info()
			f = tb.tb_frame
			lineno = tb.tb_lineno
			errorMessage = "Error - Asset_Overview_OnRowclick, Line:" + str(lineno) + ", Err:"+ str(exc_obj)
			system.perspective.print("errorMessage: "+str(errorMessage))	
			#sys.exit()

```

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 22, 2024, 7:53am UTC](https://forum.inductiveautomation.com/t/need-to-move-the-multiple-selected-row-data-from-the-table-component/90724/2 "2024-05-22T07:53:12Z")

</div>

Hi, Jeffin and welcome to the forum.

Like most other forums, Ignition's forum has a way to post code that preserves indents and applies syntax highlighting. Please see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831) and then **edit** (pencil icon) your post to fix it.

---

<div class="post-metadata">

**Author:** ![Jeffin\_Kumar1](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@Jeffin\_Kumar1](https://forum.inductiveautomation.com/u/Jeffin_Kumar1)\
**Post date:** [May 22, 2024, 8:30am UTC](https://forum.inductiveautomation.com/t/need-to-move-the-multiple-selected-row-data-from-the-table-component/90724/3 "2024-05-22T08:30:08Z")

</div>

Okay I Edited the Script.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 22, 2024, 8:56am UTC](https://forum.inductiveautomation.com/t/need-to-move-the-multiple-selected-row-data-from-the-table-component/90724/4 "2024-05-22T08:56:50Z")

</div>

Can you explain some more about what you are trying to achieve?

1. You have a table with `selection.mode` set to `single interval` or `multiple interval`?
2. How is this script executed? e.g., A button?
3. The normal method of removing rows from a table is to delete them from the source and then refresh the table `props.data` binding. You seem to be trying something more complicated. Why? What? Where?
4. Your question title says "Move the multiple selected row data". Move it where?
