# Perspective table dynamic icons and rows colors

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-dynamic-icons-and-rows-colors/44693>\
**Category:** Ignition\
**Tags:** perspective, ignition80\
**Created:** [March 19, 2021, 5:07pm UTC](https://forum.inductiveautomation.com/t/perspective-table-dynamic-icons-and-rows-colors/44693 "2021-03-19T17:07:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [March 19, 2021, 5:45pm UTC](https://forum.inductiveautomation.com/t/perspective-table-dynamic-icons-and-rows-colors/44693/2 "2021-03-19T17:45:42Z")

</div>

You’ll need to set up your data so that it contains the following structure for each row:

```auto
{
    "stationName": "MyStationOne",
    "tagPath": "[provider]SomePath/MyTag",
    "displayAlarm": "[provider]SomePath/MyTag"
}

```

In this data, the `displayAlarm` uses the same string tag path as `tagPath`, but the View itself will be responsible for determining if the icon should be shown.

You then need to set up a column configuration for each column you want in your table, and you need to make sure that the `field` property of each column configuration matches the keys in the row data.  
 ![Screen Shot 2021-03-19 at 10.38.48AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/2/829e5320665ce249f1a2c81e2cf518e8254b7a6f.png)

The important part is selecting that the column should render a view and supplying the path to the View (note the setting of the `render` property and the `viewPath` property):  
 ![Screen Shot 2021-03-19 at 10.39.50AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/0/f065fd75b0a2bf256bd501084084923beaaaf48e.png)

For changing the color of rows based on some value, please see this post: [Changing colour of row based off value in cell in perspective table - #17 by cmallonee](http://forum.inductiveautomation.com/t/changing-colour-of-row-based-off-value-in-cell-in-perspective-table/43587/17)

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-table-dynamic-icons-and-rows-colors/44693)._
