# Creating custom Column objects doesn't display all columns in table correctly

**URL:** <https://forum.inductiveautomation.com/t/creating-custom-column-objects-doesnt-display-all-columns-in-table-correctly/35597>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [June 12, 2020, 3:41pm UTC](https://forum.inductiveautomation.com/t/creating-custom-column-objects-doesnt-display-all-columns-in-table-correctly/35597 "2020-06-12T15:41:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YF129701](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/yf129701/32/60498_2.png) [@YF129701](https://forum.inductiveautomation.com/u/YF129701)\
**Post date:** [June 12, 2020, 3:41pm UTC](https://forum.inductiveautomation.com/t/creating-custom-column-objects-doesnt-display-all-columns-in-table-correctly/35597/1 "2020-06-12T15:41:08Z")

</div>

I’m having trouble creating custom column components. What I have working: I populate a Table’s data to a list of objects, which shows up correctly when I expand `data`. On the same button click but before I bind the Table’s `data`, I get a list of column names and have a simple **for** loop that creates an object and passes in a `field` value.

Here is the list of columns: `['flasksize1', 'ign_flasksize1', 'flasksize', 'ign_flasksize', 'flasksize3', 'ign_flasksize3', 'flasksize2', 'ign_flasksize2', 'workcenter', 'ign_workcenter', 'active', 'ign_active', 'description', 'ign_description', 'tool', 'ign_tool', 'copedrag', 'ign_copedrag', 'location', 'ign_location', 'totalshots', 'ign_totalshots', 'customer', 'ign_customer']`.

I can verify that the columns bind correctly by opening up the `column` objects inside the table.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/ce9e53bc0ea11a81258504cc4fd0f807d924e39f.png)

However, when I look at the table itself, all the columns with the `ign_` prefix don’t show up.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b9f534e291b999596f40b4c6c1d92b93ee6df23c.png)

Here is the button’s onClick event:

```auto
    cols = []
	for col in ls[1]: # ls[1] is a list of columns passed from global fn
		cols.append(
			{
			  "field": col,
			  "visible": true,
			  "editable": false,
			  "render": "auto",
			  "justify": "auto",
			  "align": "center",
			  "resizable": true,
			         . . . 
			  "style": {
				"classes": ""
			  }
			})
    # assign column objects to Table column
	self.getSibling("Table").props.columns = cols
	
	# assign data after making columns
	self.getSibling("Table").props.data = ls[0]

```

What could be the issue here?
