# Adding button to a Perspective table

**URL:** <https://forum.inductiveautomation.com/t/adding-button-to-a-perspective-table/100043>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [December 19, 2024, 2:59pm UTC](https://forum.inductiveautomation.com/t/adding-button-to-a-perspective-table/100043 "2024-12-19T14:59:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![CTrenkamp](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ctrenkamp/32/38440_2.png) [@CTrenkamp](https://forum.inductiveautomation.com/u/CTrenkamp)\
**Post date:** [December 19, 2024, 2:59pm UTC](https://forum.inductiveautomation.com/t/adding-button-to-a-perspective-table/100043/1 "2024-12-19T14:59:12Z")

</div>

I want to add a button to a specific row and column when a specific value in that row exists. I would also like to show that value on the button. I could use some pointers to get started in the right direction. I know how to add buttons to a column but not sure how to limit it to specific rows.

---

<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:** [December 19, 2024, 3:15pm UTC](https://forum.inductiveautomation.com/t/adding-button-to-a-perspective-table/100043/2 "2024-12-19T15:15:15Z")

</div>

I'm not sure you can. The view rendering is by column not by cell. You might could use a style binding that makes the buttons not look like buttons on the rows that do not qualify. You could disable them as well with parameters.

---

<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:** [December 19, 2024, 3:16pm UTC](https://forum.inductiveautomation.com/t/adding-button-to-a-perspective-table/100043/3 "2024-12-19T15:16:45Z")

</div>

Better yet, just hide the button in the view based on parameter.

---

<div class="post-metadata">

**Author:** ![CTrenkamp](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ctrenkamp/32/38440_2.png) [@CTrenkamp](https://forum.inductiveautomation.com/u/CTrenkamp)\
**Post date:** [December 19, 2024, 3:16pm UTC](https://forum.inductiveautomation.com/t/adding-button-to-a-perspective-table/100043/4 "2024-12-19T15:16:55Z")

</div>

I am having issues passing parameters to the buttons for each row. Examples would help if you have them. You described what I basically need. I already tried rowData and value but no luck.

---

<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:** [December 19, 2024, 3:22pm UTC](https://forum.inductiveautomation.com/t/adding-button-to-a-perspective-table/100043/5 "2024-12-19T15:22:22Z")

</div>

The easiest method is to add an input parameter on your button view named `rowData`. The row data from the table row will automatically be passed to each view. You can access this data in the button view like this

```python
self.view.params.rowData['someColumnName']

```

Copy and paste an example of the rowData into the button view parameter, so you can easily make bindings.

---

<div class="post-metadata">

**Author:** ![CTrenkamp](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ctrenkamp/32/38440_2.png) [@CTrenkamp](https://forum.inductiveautomation.com/u/CTrenkamp)\
**Post date:** [December 19, 2024, 3:25pm UTC](https://forum.inductiveautomation.com/t/adding-button-to-a-perspective-table/100043/6 "2024-12-19T15:25:44Z")

</div>

I have used that method before when using popups but also used the extension (.value) at the end. It is working now, thanks.

---

<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:** [December 19, 2024, 4:44pm UTC](https://forum.inductiveautomation.com/t/adding-button-to-a-perspective-table/100043/7 "2024-12-19T16:44:06Z")

</div>

Cell render view are automatically passed **two** parameters:

- `rowData` gets the entire row's values.
- `value` gets the value at that row/column intersection.

---

<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:** [December 19, 2024, 5:35pm UTC](https://forum.inductiveautomation.com/t/adding-button-to-a-perspective-table/100043/8 "2024-12-19T17:35:04Z")

</div>

See all the passed properties at the bottom of [Table Column Configurations | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-display-palette/perspective-table/table-column-configurations#embedding-a-view-in-a-table-cell).
