# Read column header from dataset TAG?

**URL:** <https://forum.inductiveautomation.com/t/read-column-header-from-dataset-tag/12695>\
**Category:** Ignition\
**Created:** [February 19, 2017, 4:03pm UTC](https://forum.inductiveautomation.com/t/read-column-header-from-dataset-tag/12695 "2017-02-19T16:03:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paullys50](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paullys50/32/3324_2.png) [@Paullys50](https://forum.inductiveautomation.com/u/Paullys50)\
**Post date:** [February 19, 2017, 4:03pm UTC](https://forum.inductiveautomation.com/t/read-column-header-from-dataset-tag/12695/1 "2017-02-19T16:03:08Z")

</div>

Trying to make a popup with a power table that will dynamically adjust to the contents of of a dataset stored in a tag. Is there a scripting method that returns the column header data only?

I’m doing some scripting to manipulate the data in each tag through the power table, I usually can get away with a hard-coded setup:

```auto
header = ["Column1", "Column2", "Column3"...]
data = []
DataSet = system.dataset.toDataSet(header,data)
```

I want ( [“Column1”, “Column2”, “Column3”…]) information to come from the tag.

```auto
header = [TagFolder/Tag[Column1] ,TagFolder/Tag[Column2], TagFolder/Tag[Column3]...]
data = []
DataSet = system.dataset.toDataSet(header,data)
```

How can I do that?

---

<div class="post-metadata">

**Author:** ![Paullys50](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paullys50/32/3324_2.png) [@Paullys50](https://forum.inductiveautomation.com/u/Paullys50)\
**Post date:** [February 19, 2017, 4:14pm UTC](https://forum.inductiveautomation.com/t/read-column-header-from-dataset-tag/12695/2 "2017-02-19T16:14:01Z")

</div>

Nevermind…

system.dataset.getColumnHeaders…#faceplam
