# Perspective scripting-how to reference a specific cell in a table in python

**URL:** <https://forum.inductiveautomation.com/t/perspective-scripting-how-to-reference-a-specific-cell-in-a-table-in-python/98961>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [November 21, 2024, 10:23pm UTC](https://forum.inductiveautomation.com/t/perspective-scripting-how-to-reference-a-specific-cell-in-a-table-in-python/98961 "2024-11-21T22:23:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [November 21, 2024, 11:33pm UTC](https://forum.inductiveautomation.com/t/perspective-scripting-how-to-reference-a-specific-cell-in-a-table-in-python/98961/2 "2024-11-21T23:33:45Z")

</div>

Are you using a dataset or JSON for the table's `data` property?

This works with the default table component data.

```python
def runAction(self, event):
	data = self.getSibling("Table").props.data
	for row in data:
		country = row['country']
		# Do something with country ...

```

Please see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-scripting-how-to-reference-a-specific-cell-in-a-table-in-python/98961)._
