# Power Table isCellEditable based on parameter

**URL:** <https://forum.inductiveautomation.com/t/power-table-iscelleditable-based-on-parameter/27363>\
**Category:** Ignition\
**Created:** [August 12, 2019, 2:36pm UTC](https://forum.inductiveautomation.com/t/power-table-iscelleditable-based-on-parameter/27363 "2019-08-12T14:36:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ammermanbrittanyf](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@ammermanbrittanyf](https://forum.inductiveautomation.com/u/ammermanbrittanyf)\
**Post date:** [August 12, 2019, 2:36pm UTC](https://forum.inductiveautomation.com/t/power-table-iscelleditable-based-on-parameter/27363/1 "2019-08-12T14:36:43Z")

</div>

Hello. I am looking to make a PowerTable editable based on the criteria of the log in. However, I can’t get it to work as desired. The function is returning the correct boolean but the table is not becoming editable. Curious on if this is possible.

```auto
security = system.tag.read("[CLIENT]FA_ECA_Security")
	security = str(security)
	security = security[1]
	print(security)
	if security == 1:
		return True
	else:
		return False

```

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [August 12, 2019, 3:07pm UTC](https://forum.inductiveautomation.com/t/power-table-iscelleditable-based-on-parameter/27363/2 "2019-08-12T15:07:32Z")

</div>

Not sure what your client tag will actually read, but try this:

```auto
security = system.tag.read("[CLIENT]FA_ECA_Security").value
	print(security)
	if security == 1:
		return True
	else:
		return False

```

---

<div class="post-metadata">

**Author:** ![ammermanbrittanyf](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@ammermanbrittanyf](https://forum.inductiveautomation.com/u/ammermanbrittanyf)\
**Post date:** [August 12, 2019, 3:09pm UTC](https://forum.inductiveautomation.com/t/power-table-iscelleditable-based-on-parameter/27363/3 "2019-08-12T15:09:55Z")

</div>

that worked perfectly! Thank you. Simple fix 🙂

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 12, 2019, 3:19pm UTC](https://forum.inductiveautomation.com/t/power-table-iscelleditable-based-on-parameter/27363/4 "2019-08-12T15:19:55Z")

</div>

Note that you probably don’t want to run the actual tag read in the isCellEditable function for performance reasons. You’ll get _much_ better performance if you add a separate custom parameter on the table, bind it to the client tag, then refer to that custom parameter in the script.
