# Adding A Row to a Table Using an Icon Instead of Data

**URL:** <https://forum.inductiveautomation.com/t/adding-a-row-to-a-table-using-an-icon-instead-of-data/79037>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [September 12, 2023, 6:40pm UTC](https://forum.inductiveautomation.com/t/adding-a-row-to-a-table-using-an-icon-instead-of-data/79037 "2023-09-12T18:40:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJ\_Waizmann](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@AJ\_Waizmann](https://forum.inductiveautomation.com/u/AJ_Waizmann)\
**Post date:** [September 12, 2023, 6:40pm UTC](https://forum.inductiveautomation.com/t/adding-a-row-to-a-table-using-an-icon-instead-of-data/79037/1 "2023-09-12T18:40:57Z")

</div>

Within a Perspective view, I am trying to fill a table with 6 columns worth of data, with a 7th column existing to show an X icon to allow the user to delete the row when clicked. Is there a way to add this column to the table without adding a view parameter to the dataset? I want to avoid this because the icon will be the same in every row no matter what, so I'd prefer to add it as some type of default value for that 7th column in the table.

Thanks!

---

<div class="post-metadata">

**Author:** ![kyler.kamyszek](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kyler.kamyszek](https://forum.inductiveautomation.com/u/kyler.kamyszek)\
**Post date:** [September 12, 2023, 7:16pm UTC](https://forum.inductiveautomation.com/t/adding-a-row-to-a-table-using-an-icon-instead-of-data/79037/2 "2023-09-12T19:16:07Z")

</div>

The table component isn't great at doing what you're asking. I would just have a separate button somewhere for 'Delete' that is enabled with you have a row selected on the table.

If you want to do what you're asking, create a view for a 'row' that is a flex container. You can put the button there along with labels for your data. Then use a flex repeater on your row view to generate the table look.

---

<div class="post-metadata">

**Author:** ![DNice](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@DNice](https://forum.inductiveautomation.com/u/DNice)\
**Post date:** [September 12, 2023, 7:19pm UTC](https://forum.inductiveautomation.com/t/adding-a-row-to-a-table-using-an-icon-instead-of-data/79037/3 "2023-09-12T19:19:40Z")

</div>

> [@Perspective table dynamic icons and rows colors](https://forum.inductiveautomation.com/t/perspective-table-dynamic-icons-and-rows-colors/44693):
>
> Hi, I want to create a table that displays for each row a description, a number binded to a tag and an icons that represent a boolean tag. Based on the state of the tag the icon should be visible or not and the row should change color. To be more specific for each row I have the name of station, the most important tag for that station and alarm bell (material/notifications) that should appear if a certain tag goes to 1. In this post [Icon in Perspective Table Column](http://forum.inductiveautomation.com/t/icon-in-perspective-table-column/30057/8) I saw that to include icon…
