# Viewing/Inspecting Dataset Tag Value

**URL:** <https://forum.inductiveautomation.com/t/viewing-inspecting-dataset-tag-value/85373>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [February 7, 2024, 2:34pm UTC](https://forum.inductiveautomation.com/t/viewing-inspecting-dataset-tag-value/85373 "2024-02-07T14:34:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [February 7, 2024, 2:34pm UTC](https://forum.inductiveautomation.com/t/viewing-inspecting-dataset-tag-value/85373/1 "2024-02-07T14:34:02Z")

</div>

I've got a dataset tag that is filled from a script. What's the best way for me to quickly inspect the dataset to see the values? I would typically temporarily bind it to a dataset in a view/window and inspect it there, but wondering if there's something quicker.

TIA

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 7, 2024, 2:38pm UTC](https://forum.inductiveautomation.com/t/viewing-inspecting-dataset-tag-value/85373/2 "2024-02-07T14:38:33Z")

</div>

> [@amarks](#):
>
> temporarily bind it to a dataset in a view/window

That's what I do. 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [February 7, 2024, 2:43pm UTC](https://forum.inductiveautomation.com/t/viewing-inspecting-dataset-tag-value/85373/3 "2024-02-07T14:43:34Z")

</div>

I'm pretty sure you can click the value in the tag browser to open a table with the dataset's value...

Otherwise, I'd either do just as you said, or print it in the script console.

here's a `print_ds` function:

```python
def print_ds(ds, show_rownums=False):
	"""
	Print a dataset in a markdown compatible format.

	params:
		ds: Dataset to print
		show_rownums:	If true, a column is added at index 0 with the row number
	"""
	headers = list(ds.columnNames)

	if ds.rowCount == 0:
		print "| {} |".format(' | '.join(headers))
		return

	columns = [ds.getColumnAsList(i) for i in xrange(ds.columnCount)]
	if show_rownums:
		headers = [""] + headers
		columns = [range(ds.rowCount)] + columns
	widths = [
		max(
			max(len(unicode(value)) for value in col),
			len(header)
		) for header, col in izip(headers, columns)
	]
	
	print '| {} |'.format(' | '.join(h.ljust(w) for h, w in izip(headers, widths)))
	print '|{}|'.format('|'.join('-'*(w+2) for w in widths))
	print '\n'.join('| {} |'.format(' | '.join(unicode(v).ljust(w) for v, w in izip(row, widths))) for row in izip(*columns))

```

and here's what you could use in the script console:

```python
ds = system.tag.readBlocking(["your_tag_path"])[0].value
print_ds(ds)

```

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [February 7, 2024, 2:49pm UTC](https://forum.inductiveautomation.com/t/viewing-inspecting-dataset-tag-value/85373/4 "2024-02-07T14:49:47Z")

</div>

Clicking (or double clicking) the value does not work, but expanding the tag and finding the value prop, I can expand that down and it gives a "folder" for each column that can then be expanded to view the values of the column.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [February 7, 2024, 2:52pm UTC](https://forum.inductiveautomation.com/t/viewing-inspecting-dataset-tag-value/85373/5 "2024-02-07T14:52:08Z")

</div>

I found what I was think of:

double click on the tag to open the tag editor, then click on the little pen icon next to the value:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/3/53c0b28336a95b71c02a011cc69fb9f6960cf44e.png)

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [February 7, 2024, 2:53pm UTC](https://forum.inductiveautomation.com/t/viewing-inspecting-dataset-tag-value/85373/6 "2024-02-07T14:53:17Z")

</div>

Except that the dataset is being populated from a `runScript()` expression, so that doesn't work in this case.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [February 7, 2024, 2:54pm UTC](https://forum.inductiveautomation.com/t/viewing-inspecting-dataset-tag-value/85373/7 "2024-02-07T14:54:30Z")

</div>

Oh, right, that just for memory tags I guess...
