# Passing unique parameters for each row of the table using an embedded view in the column

**URL:** <https://forum.inductiveautomation.com/t/passing-unique-parameters-for-each-row-of-the-table-using-an-embedded-view-in-the-column/94586>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 13, 2024, 12:16pm UTC](https://forum.inductiveautomation.com/t/passing-unique-parameters-for-each-row-of-the-table-using-an-embedded-view-in-the-column/94586 "2024-08-13T12:16:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinicius\_Ashimine](https://avatars.discourse-cdn.com/v4/letter/v/fbc32d/32.png) [@Vinicius\_Ashimine](https://forum.inductiveautomation.com/u/Vinicius_Ashimine)\
**Post date:** [August 13, 2024, 12:16pm UTC](https://forum.inductiveautomation.com/t/passing-unique-parameters-for-each-row-of-the-table-using-an-embedded-view-in-the-column/94586/1 "2024-08-13T12:16:38Z")

</div>

I have a table that is using an embedded view in the last column, and this embedded view contains buttons. I want to pass parameters for each row to enable or disable the button for each row of this table.

![Captura de tela 2024-08-13 091254](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/c/cceb30dfc40225693c1d8d2172e7fafd3beed805.png)

 ![Captura de tela 2024-08-13 091408](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/1/7198cfcc9c0ec4d589583ac9f88a66a6b1d632bc.png)

I want the button to be enabled or disabled based on a column in the table.

---

<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:** [August 13, 2024, 12:30pm UTC](https://forum.inductiveautomation.com/t/passing-unique-parameters-for-each-row-of-the-table-using-an-embedded-view-in-the-column/94586/2 "2024-08-13T12:30:14Z")

</div>

The view params you specify in the table's `props.columns` are **constants** for the entire column.

The view will **automatically** be passed a `value` parameter, if it exists in the view, containing the cell value for the row and column. It will also **automatically** receive a `rowData` parameter, if it exists in the view, containing the entire row's data.

You must define these params in your view, exactly as shown, to get the values at runtime. (No binding.)

---

<div class="post-metadata">

**Author:** ![Vinicius\_Ashimine](https://avatars.discourse-cdn.com/v4/letter/v/fbc32d/32.png) [@Vinicius\_Ashimine](https://forum.inductiveautomation.com/u/Vinicius_Ashimine)\
**Post date:** [August 13, 2024, 12:43pm UTC](https://forum.inductiveautomation.com/t/passing-unique-parameters-for-each-row-of-the-table-using-an-embedded-view-in-the-column/94586/3 "2024-08-13T12:43:06Z")

</div>

Do I need to create a `rowData` parameter so that my embedded view can receive this parameter?

---

<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:** [August 13, 2024, 12:48pm UTC](https://forum.inductiveautomation.com/t/passing-unique-parameters-for-each-row-of-the-table-using-an-embedded-view-in-the-column/94586/4 "2024-08-13T12:48:18Z")

</div>

> [@Vinicius\_Ashimine](#):
>
> create a `rowData` parameter

Yes, in the embedded view. Not in the table's `props.columns`. Then the embedded view can access `view.params.rowData.somekey` to use the `somekey` column's value in its component enable binding.

(It helps when designing the embedded view to paste a sample row's data in the parameter's value. But you really only need to include the keys that matter for your bindings inside the embedded view.)
