# \[SOLVED\] How do you read a dataset from a templates parameters

**URL:** <https://forum.inductiveautomation.com/t/solved-how-do-you-read-a-dataset-from-a-templates-parameters/31200>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [January 9, 2020, 10:41pm UTC](https://forum.inductiveautomation.com/t/solved-how-do-you-read-a-dataset-from-a-templates-parameters/31200 "2020-01-09T22:41:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [January 9, 2020, 10:41pm UTC](https://forum.inductiveautomation.com/t/solved-how-do-you-read-a-dataset-from-a-templates-parameters/31200/1 "2020-01-09T22:41:07Z")

</div>

I have a template ‘Arctic’. On this template is a single template parameter called ‘Table’. ‘Table’ is made up of dataset [3R x 1C] with values ‘Cold’, ‘Snowy’, and ‘White’. On the template is a mouseClicked script with the following that does not work:

```
data = event.source.getPropertyValue("Table").Table
pds = system.dataset.toPyDataSet(data)

for row in pds:
    for value in row:
        print value

```

Now the intent is to print the values ‘Cold’, ‘Snowy’, and ‘White’. How would I go about scripting this to print the 3 values? Thank you for any help.

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [January 9, 2020, 10:57pm UTC](https://forum.inductiveautomation.com/t/solved-how-do-you-read-a-dataset-from-a-templates-parameters/31200/2 "2020-01-09T22:57:15Z")

</div>

Somehow I am really good at finding my answer 5 minutes after I post it here… 😅

```
data = event.source.Table
pds = system.dataset.toPyDataSet(data)

for row in pds:
    for value in row:
        system.gui.messageBox(value)
```
