# Update opc tags from a vision table?

**URL:** <https://forum.inductiveautomation.com/t/update-opc-tags-from-a-vision-table/45599>\
**Category:** Ignition\
**Created:** [April 14, 2021, 4:25pm UTC](https://forum.inductiveautomation.com/t/update-opc-tags-from-a-vision-table/45599 "2021-04-14T16:25:02Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [July 1, 2021, 4:22pm UTC](https://forum.inductiveautomation.com/t/update-opc-tags-from-a-vision-table/45599/5 "2021-07-01T16:22:50Z")

</div>

The below assumes you are editing COLUMN 0 and the Tagpath is in COLUMN 1  
Adjust as needed.

```auto
	if colIndex==0:
		tPath = self.data.getValueAt(rowIndex,1)
		system.tag.write(tPath,newValue)
		self.data = system.dataset.setValue(self.data, rowIndex, colIndex, newValue)	
		print tPath

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/update-opc-tags-from-a-vision-table/45599)._
