# Dynamic Check Box Selection in Table

**URL:** <https://forum.inductiveautomation.com/t/dynamic-check-box-selection-in-table/77692>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 10, 2023, 12:22pm UTC](https://forum.inductiveautomation.com/t/dynamic-check-box-selection-in-table/77692 "2023-08-10T12:22:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![KAVINAYA\_L](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@KAVINAYA\_L](https://forum.inductiveautomation.com/u/KAVINAYA_L)\
**Post date:** [August 10, 2023, 12:22pm UTC](https://forum.inductiveautomation.com/t/dynamic-check-box-selection-in-table/77692/1 "2023-08-10T12:22:33Z")

</div>

hi,  
i have a table with column name of approval status which will be approved or pending. i have added another column with render as a view checkbox. here if i column has approved the checkbox should be disabled if pending it should to enable to edit .is there any ways to achieve.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [August 10, 2023, 2:12pm UTC](https://forum.inductiveautomation.com/t/dynamic-check-box-selection-in-table/77692/2 "2023-08-10T14:12:20Z")

</div>

The table's row data is passed to any embedded view. That means that you can bind the checkbox enabled propert to the view's row data. See how to use `view.params.value` at the bottom of [Table Column Configurations - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/Table+Column+Configurations#TableColumnConfigurations-EmbeddingaViewinaTableCell).

---

<div class="post-metadata">

**Author:** ![KAVINAYA\_L](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@KAVINAYA\_L](https://forum.inductiveautomation.com/u/KAVINAYA_L)\
**Post date:** [August 11, 2023, 4:19am UTC](https://forum.inductiveautomation.com/t/dynamic-check-box-selection-in-table/77692/3 "2023-08-11T04:19:17Z")

</div>

hi ,  
I'm unsure about how to bind the row index. When I do bind it, the change applies to all the rows in the checkbox column. In this scenario, I need to implement a condition involving two columns: 'column1' and 'column2' (checkbox). If the row value in 'column1' is 'approved', then I need to disable the checkbox for that specific row. For the rest of the rows in the 'checkbox' column, they should remain enabled for editing.

Thank you

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [August 17, 2023, 12:02pm UTC](https://forum.inductiveautomation.com/t/dynamic-check-box-selection-in-table/77692/4 "2023-08-17T12:02:25Z")

</div>

> [@KAVINAYA\_L](#):
>
> the rest of the rows in the 'checkbox' column, they should remain enabled for editing.

Block specific cells in the checkbox column from being editable

---

<div class="post-metadata">

**Author:** ![KAVINAYA\_L](https://avatars.discourse-cdn.com/v4/letter/k/ce73a5/32.png) [@KAVINAYA\_L](https://forum.inductiveautomation.com/u/KAVINAYA_L)\
**Post date:** [August 17, 2023, 12:16pm UTC](https://forum.inductiveautomation.com/t/dynamic-check-box-selection-in-table/77692/5 "2023-08-17T12:16:26Z")

</div>

hi justinedwards ,

I also have functionalities on rows when double-clicked.Is there any other ways?

thank you

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [August 17, 2023, 2:17pm UTC](https://forum.inductiveautomation.com/t/dynamic-check-box-selection-in-table/77692/6 "2023-08-17T14:17:17Z")

</div>

> [@KAVINAYA\_L](#):
>
> also have functionalities

One problem at a time. I'm not in a position where I could experiment with this right now, but perhaps this bump to the question will get the attention of somebody in a position to help.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [September 10, 2023, 4:26am UTC](https://forum.inductiveautomation.com/t/dynamic-check-box-selection-in-table/77692/7 "2023-09-10T04:26:16Z")

</div>

Here is a way to do it.  
**Step 1:** Follow the tutorial posted by Transistor to create a checkbox in a view that is rendered in your Boolean column  
**Step 2:** Add a hidden column called enabled to your table's data property  
**Step 3:** In your checkbox's view, add the rowData parameter  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/0/00b5cedfde29e078ce8fc4a734d3b8d29714c42c.png)

**Step 4:** Bind your checkbox's enabled parameter to the view's rowData property, and add `.enabled` to the end of it.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/b/9ba19fd1d2495d495a0fc0b8b1aba38a65cd8406.png)  
**Note:** This will result in a null value and a red dot on your checkbox, but ignore this because this isn't a problem.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/b/cb1a2f352f3abe6ae07079d93140492d339d31ae.png)

Once this is done, you can individually control the enabled property of each checkbox in your table by controlling the corresponding enabled value of the hidden column:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/a/3a09c54fcbccff718b803fec3144bb216895c98f.png)

---

<div class="post-metadata">

**Author:** ![Mohd\_Waqas](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@Mohd\_Waqas](https://forum.inductiveautomation.com/u/Mohd_Waqas)\
**Post date:** [December 14, 2023, 10:43am UTC](https://forum.inductiveautomation.com/t/dynamic-check-box-selection-in-table/77692/8 "2023-12-14T10:43:28Z")

</div>

> [@justinedwards.jle](#):
>
> In your checkbox's view, add the rowData parameter

can we have solutions same as for dynamic data coming from Databases ? As in this it show manually data in table. correct ?
