# Power Table column set to boolean and editable

**URL:** <https://forum.inductiveautomation.com/t/power-table-column-set-to-boolean-and-editable/11691>\
**Category:** General Discussion\
**Created:** [May 18, 2016, 3:30pm UTC](https://forum.inductiveautomation.com/t/power-table-column-set-to-boolean-and-editable/11691 "2016-05-18T15:30:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry101](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@jerry101](https://forum.inductiveautomation.com/u/jerry101)\
**Post date:** [May 18, 2016, 3:30pm UTC](https://forum.inductiveautomation.com/t/power-table-column-set-to-boolean-and-editable/11691/1 "2016-05-18T15:30:09Z")

</div>

I am using a power table and have set a column to boolean so that it uses checkbox. I also have set that column as editable, under the table customizer settings. The checkbox shows properly but you can’t check or uncheck the box even though i have it set to editable. Please help!

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [May 18, 2016, 4:35pm UTC](https://forum.inductiveautomation.com/t/power-table-column-set-to-boolean-and-editable/11691/2 "2016-05-18T16:35:36Z")

</div>

What version are you using?

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [May 18, 2016, 4:39pm UTC](https://forum.inductiveautomation.com/t/power-table-column-set-to-boolean-and-editable/11691/3 "2016-05-18T16:39:08Z")

</div>

I just tested this on 7.8.2 and it does the same thing.  
A workaround would be to do this in onMousePress

```auto
	if colIndex==3:
		curData = not value
		newData = system.dataset.setValue(self.data, rowIndex, colIndex, curData)
	 	self.data = newData
```

Where the colIndex points at the bool column you want to use.

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [May 18, 2016, 5:39pm UTC](https://forum.inductiveautomation.com/t/power-table-column-set-to-boolean-and-editable/11691/4 "2016-05-18T17:39:00Z")

</div>

Do you have the onCellEdited extension function set?

```auto
self.data = system.dataset.setValue(self.data, rowIndex, colIndex, newValue)
```
