# Add row to table

**URL:** <https://forum.inductiveautomation.com/t/add-row-to-table/24810>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [May 8, 2019, 10:34pm UTC](https://forum.inductiveautomation.com/t/add-row-to-table/24810 "2019-05-08T22:34:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim/32/3361_2.png) [@Tim](https://forum.inductiveautomation.com/u/Tim)\
**Post date:** [May 8, 2019, 10:34pm UTC](https://forum.inductiveautomation.com/t/add-row-to-table/24810/1 "2019-05-08T22:34:03Z")

</div>

How do I add a row to a table dataset?

table = event.source.parent.getComponent(‘Table’)  
newRow = ["","",""]  
system.dataset.addRow(table.data, newRow)

This does not error, but does not add a row. The table data is not bound to anything else.

Ignition 7.9.9

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 8, 2019, 10:34pm UTC](https://forum.inductiveautomation.com/t/add-row-to-table/24810/2 "2019-05-08T22:34:48Z")

</div>

datasets are immutable, `system.dataset.addRow` returns a _new_ dataset with the additional row in it.

---

<div class="post-metadata">

**Author:** ![Tim](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim/32/3361_2.png) [@Tim](https://forum.inductiveautomation.com/u/Tim)\
**Post date:** [May 8, 2019, 10:38pm UTC](https://forum.inductiveautomation.com/t/add-row-to-table/24810/3 "2019-05-08T22:38:03Z")

</div>

Thanks. Overlooked that.

```auto
table = event.source.parent.getComponent(‘Table’)
newRow = ["","",""]
table.data = system.dataset.addRow(table.data, newRow)

```
