# How to extract the value of the selected row

**URL:** <https://forum.inductiveautomation.com/t/how-to-extract-the-value-of-the-selected-row/8817>\
**Category:** Ignition\
**Created:** [July 30, 2014, 4:02pm UTC](https://forum.inductiveautomation.com/t/how-to-extract-the-value-of-the-selected-row/8817 "2014-07-30T16:02:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [January 9, 2023, 10:50am UTC](https://forum.inductiveautomation.com/t/how-to-extract-the-value-of-the-selected-row/8817/5 "2023-01-09T10:50:34Z")

</div>

I wrote a helper function for that.

> [@View Dataset from script console](https://forum.inductiveautomation.com/t/view-dataset-from-script-console/36704/4):
>
> Sorry, I'm on vacation, but family is napping, so I get to play. Yes, this is how I relax. Don't judge. EDIT: Added option for printing from Perspective. Sorry, not quite ready for prime time. roll_eyes def printDataSet(datasetIn): from itertools import izip import ast if 'PropertyTreeScriptWrapper$ArrayWrapper' in str(type(datasetIn)): headers = datasetIn[0].keys() data = [] for row in datasetIn: data.append([item.value for item in row.values()]) datasetIn = system.dataset…

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-extract-the-value-of-the-selected-row/8817)._
