# Perspective Table Rows Not Bidirectional With JSON Structure

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-rows-not-bidirectional-with-json-structure/79486>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 21, 2023, 11:23pm UTC](https://forum.inductiveautomation.com/t/perspective-table-rows-not-bidirectional-with-json-structure/79486 "2023-09-21T23:23:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmahaf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaf/32/23492_2.png) [@tmahaf](https://forum.inductiveautomation.com/u/tmahaf)\
**Post date:** [September 21, 2023, 11:24pm UTC](https://forum.inductiveautomation.com/t/perspective-table-rows-not-bidirectional-with-json-structure/79486/1 "2023-09-21T23:24:00Z")

</div>

I can toggle the checkboxfrom the table data prop and the checkbox works as expected:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/6/36afe67c74ced390c1fa6e1e7082ea31c933ec4c.png)

However,

Setting the bit low on the checkbox doesn't work bidirectionally and the table Data value still shows the bit True:

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

I promise you the checkbox here has a bidirectional binding to the value.selected

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/6/268de0bd5924bd4366264bb089262afe8b70b7ed.png)

Prefer not to use messaging, would love to get my table data struct to work both ways with embedded view params

---

<div class="post-metadata">

**Author:** ![Learner\_Ignition](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@Learner\_Ignition](https://forum.inductiveautomation.com/u/Learner_Ignition)\
**Post date:** [September 22, 2023, 6:09am UTC](https://forum.inductiveautomation.com/t/perspective-table-rows-not-bidirectional-with-json-structure/79486/2 "2023-09-22T06:09:52Z")

</div>

Same behavior when you check in browser?, with `system.perspective.print` output is matching with your data?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [September 22, 2023, 6:33am UTC](https://forum.inductiveautomation.com/t/perspective-table-rows-not-bidirectional-with-json-structure/79486/3 "2023-09-22T06:33:20Z")

</div>

I avoid views in tables because I can't wrap my head around how it all works, but you can enable both  
row and column selection and add an `onRowClick` event to your table:

```python
row = self.props.selection.selectedRow
column = self.props.selection.selectedColumn
self.props.data[row][column]['selected'] = not self.props.data[row][column]['selected']

```
