# Adding elements to Table Column Defs

**URL:** <https://forum.inductiveautomation.com/t/adding-elements-to-table-column-defs/24046>\
**Category:** Ignition Early Access\
**Created:** [April 11, 2019, 3:16pm UTC](https://forum.inductiveautomation.com/t/adding-elements-to-table-column-defs/24046 "2019-04-11T15:16:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Steve\_Laubach](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steve_laubach/32/60900_2.png) [@Steve\_Laubach](https://forum.inductiveautomation.com/u/Steve_Laubach)\
**Post date:** [May 3, 2019, 3:42pm UTC](https://forum.inductiveautomation.com/t/adding-elements-to-table-column-defs/24046/3 "2019-05-03T15:42:55Z")

</div>

I haven’t had time to work on it. I think the answer is either to do this (per this post [Perspective table editing help](http://forum.inductiveautomation.com/t/perspective-table-editing-help/23738/6))

import json  
json.reads

columnJSON = ‘’  
columnSet = []  
for i in range(columnCount):  
columnSet.append(json.reads(columnJSON % ()))  
columnSet[i][‘field’] = ‘Column Name’

myTable.props.columns = columnSet

or maybe to choose the dataset to return as json. I’ve been tied up with other things so haven’t had a moment to try either solution.

---

_[View the full topic](https://forum.inductiveautomation.com/t/adding-elements-to-table-column-defs/24046)._
