# What kind of data is event.data?

**URL:** <https://forum.inductiveautomation.com/t/what-kind-of-data-is-event-data/37489>\
**Category:** Ignition\
**Created:** [August 7, 2020, 3:10am UTC](https://forum.inductiveautomation.com/t/what-kind-of-data-is-event-data/37489 "2020-08-07T03:10:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdixon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pdixon/32/6899_2.png) [@pdixon](https://forum.inductiveautomation.com/u/pdixon)\
**Post date:** [August 7, 2020, 3:10am UTC](https://forum.inductiveautomation.com/t/what-kind-of-data-is-event-data/37489/1 "2020-08-07T03:10:08Z")

</div>

I have a table and when I click on a row I want to set a text label to the selected value in the table. The onSelectionChange script is:

 ![ig_eventdata_script](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/a/fa720a7d47df884d35f527bac6d11176daea7050.jpeg)

This returns event.data, which contains the data I want. What I get is a value with the field (column) name and the value as [{“Field”:“Value”}] as shown:

![ig_eventdata_result](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/8/784b1362cd2261181cfff9d6b5228a3c1e1b3d9b.jpeg)

I could use some python string manipulation on event.data to strip it down to the value I want, but is there a way to access the value directly? event.data doesn’t appear to be a dataset that I could access as event.data [0][0] or event.data[0 0]. There is no value property on event.data.

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [August 7, 2020, 3:40am UTC](https://forum.inductiveautomation.com/t/what-kind-of-data-is-event-data/37489/2 "2020-08-07T03:40:19Z")

</div>

It’s a list of dictionaries–in this case a single dictionary as you’re not using multi-select.

```python
# From first list item (a dictionary) in data, get first value.
data[0].values()[0]

```

---

<div class="post-metadata">

**Author:** ![pdixon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pdixon/32/6899_2.png) [@pdixon](https://forum.inductiveautomation.com/u/pdixon)\
**Post date:** [August 7, 2020, 3:42am UTC](https://forum.inductiveautomation.com/t/what-kind-of-data-is-event-data/37489/3 "2020-08-07T03:42:42Z")

</div>

Perfect! Thank you.
