# Table cell checkbox PLC binding in Perspective

**URL:** <https://forum.inductiveautomation.com/t/table-cell-checkbox-plc-binding-in-perspective/93396>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 18, 2024, 2:09pm UTC](https://forum.inductiveautomation.com/t/table-cell-checkbox-plc-binding-in-perspective/93396 "2024-07-18T14:09:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soham\_Ambekar](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Soham\_Ambekar](https://forum.inductiveautomation.com/u/Soham_Ambekar)\
**Post date:** [July 18, 2024, 2:09pm UTC](https://forum.inductiveautomation.com/t/table-cell-checkbox-plc-binding-in-perspective/93396/1 "2024-07-18T14:09:08Z")

</div>

I have used the Table component in perspective. I am togging the checkboxes sometimes the value updates in the PLC and sometimes it doesn't, even when I toggle switches the other one gets off. I have done the binding in the following manner. Can somebody please help?

 ![ignition table problem](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/6/9613e23bd7fd05999c4c3517ccd1c4bb289d5460.png)

---

<div class="post-metadata">

**Author:** ![djs](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@djs](https://forum.inductiveautomation.com/u/djs)\
**Post date:** [July 18, 2024, 2:49pm UTC](https://forum.inductiveautomation.com/t/table-cell-checkbox-plc-binding-in-perspective/93396/2 "2024-07-18T14:49:59Z")

</div>

Are your bindings _bidirectional_?  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/b/9b5267d0644001c88e7cace0123c92441d955f56.png)  
If they are not, then they will only read from the tag. If you want them to write as well, they will have to be bidirectional.

---

<div class="post-metadata">

**Author:** ![Soham\_Ambekar](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Soham\_Ambekar](https://forum.inductiveautomation.com/u/Soham_Ambekar)\
**Post date:** [July 18, 2024, 2:53pm UTC](https://forum.inductiveautomation.com/t/table-cell-checkbox-plc-binding-in-perspective/93396/3 "2024-07-18T14:53:41Z")

</div>

I have already done that @djs

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 18, 2024, 2:59pm UTC](https://forum.inductiveautomation.com/t/table-cell-checkbox-plc-binding-in-perspective/93396/4 "2024-07-18T14:59:46Z")

</div>

The table doesn't deliver new values from editing back to its own `props.data`. You must use a script in the cell edit commit event.

---

<div class="post-metadata">

**Author:** ![simeonw](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@simeonw](https://forum.inductiveautomation.com/u/simeonw)\
**Post date:** [July 18, 2024, 8:25pm UTC](https://forum.inductiveautomation.com/t/table-cell-checkbox-plc-binding-in-perspective/93396/5 "2024-07-18T20:25:01Z")

</div>

Here is a link to the documentation for the scripting that @pturmel is talking about:

> **[Perspective - Table Scripting | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-display-palette/perspective-table/perspective-table-scripting#oneditcellcommit)**
>
> This page details the various scripting, component, and extension functions available for Perspective's Table component.

Also, is there a reason you are binding to each cell individually?

Depending on how you have structured the tags in the PLC and Ignition, you might be able to bind to the data prop for efficiently, or use something like a script transform + change script to do that and perform bulk read/writes of the changes. It might be particularly relevant if you want the number of rows to be dynamic. Just a thought...

---

<div class="post-metadata">

**Author:** ![Soham\_Ambekar](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Soham\_Ambekar](https://forum.inductiveautomation.com/u/Soham_Ambekar)\
**Post date:** [July 19, 2024, 6:37am UTC](https://forum.inductiveautomation.com/t/table-cell-checkbox-plc-binding-in-perspective/93396/6 "2024-07-19T06:37:36Z")

</div>

This is my table view

 ![ignition table problem](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/4/648d6b6743cc323ea6c09803a40ac5fbd5a5ee32.png)  
and I have binded each data with a tag  
 ![ignition 1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/b/0b4811cb3e6066ceece6b910a34166b5e455be31.png)  
I have also written the script onEditCellCommit  
 ![ignition 3](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/b/fbc7ebfd190fb04ac0d3956faa5787f130e89ce8.png)

---

<div class="post-metadata">

**Author:** ![Soham\_Ambekar](https://avatars.discourse-cdn.com/v4/letter/s/b2d939/32.png) [@Soham\_Ambekar](https://forum.inductiveautomation.com/u/Soham_Ambekar)\
**Post date:** [July 23, 2024, 4:37am UTC](https://forum.inductiveautomation.com/t/table-cell-checkbox-plc-binding-in-perspective/93396/7 "2024-07-23T04:37:36Z")

</div>

Hello, can anyone suggest anything @cmallonee @Kevin.Herron @pturmel?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 23, 2024, 11:03am UTC](https://forum.inductiveautomation.com/t/table-cell-checkbox-plc-binding-in-perspective/93396/8 "2024-07-23T11:03:46Z")

</div>

Your indentation is broken in your script. (Please don't ping me. I read everything, and help where I have something to contribute.)
