# Subview only on Specific Rows

**URL:** <https://forum.inductiveautomation.com/t/subview-only-on-specific-rows/86773>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [March 4, 2024, 4:26pm UTC](https://forum.inductiveautomation.com/t/subview-only-on-specific-rows/86773 "2024-03-04T16:26:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subin\_Adhikari](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Subin\_Adhikari](https://forum.inductiveautomation.com/u/Subin_Adhikari)\
**Post date:** [March 4, 2024, 4:26pm UTC](https://forum.inductiveautomation.com/t/subview-only-on-specific-rows/86773/1 "2024-03-04T16:26:33Z")

</div>

Hello gurus,

I wonder if we can have only Subview on Specific rows in a table. for instance, I have a column named "count" and based on that count I want to decide if we want to have a subview to the row.

Any help regarding this will be highly appreciated.

Thanks and Regards

---

<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:** [March 4, 2024, 4:50pm UTC](https://forum.inductiveautomation.com/t/subview-only-on-specific-rows/86773/2 "2024-03-04T16:50:03Z")

</div>

Table subviews is controlled by `rows.subview.enabled` which suggests that it's a property common to the table and not selectable by row.

As a workaround you could have the subview switch modes depending on a value on the row.

![Nothing to see here](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/9/991d0dc2b6456b05d7636a79ef798c4a56bc70a3.png)

Create the subview as a flex with the normal display row and the "Nothing to see here!" display row enabled and disabled by some property on the row.

---

<div class="post-metadata">

**Author:** ![Subin\_Adhikari](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Subin\_Adhikari](https://forum.inductiveautomation.com/u/Subin_Adhikari)\
**Post date:** [March 4, 2024, 4:55pm UTC](https://forum.inductiveautomation.com/t/subview-only-on-specific-rows/86773/3 "2024-03-04T16:55:25Z")

</div>

Out of my 100 records, only 10 records have sub-records to show in the subview. if it's not possible to have a Subview on a Specific row then it is wise to display the count in colour, so that people can see it and expand it. not an elegant solution but works.

Thanks for your reply @Transistor , Appreciated.

---

<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:** [March 4, 2024, 4:59pm UTC](https://forum.inductiveautomation.com/t/subview-only-on-specific-rows/86773/4 "2024-03-04T16:59:12Z")

</div>

Then consider a subview button on the rows and use a popup. It might be more obvious to the user. It doesn't facilitate multiple simultaneous subviews though.

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [March 6, 2024, 11:21pm UTC](https://forum.inductiveautomation.com/t/subview-only-on-specific-rows/86773/5 "2024-03-06T23:21:29Z")

</div>

You can make the row like this to disable the subview.

```auto
{
  "subview": {
    "enabled": false
  },
  "value": {
    "city": {
      "value": "Citrus Heights"
    },
    "country": {
      "value": "United States"
    },
    "population": {
      "value": 1
    }
  }
}

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/0/907a63f5ea0b3f0accb9970cffe4e98f9bafb134.png)

Can also set a different subview per row.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/9/0976ac0590e5a700b1b8ac6cf558352b68b5c9d1.png)
