# Problem Hiding Sub-view if there is no data

**URL:** <https://forum.inductiveautomation.com/t/problem-hiding-sub-view-if-there-is-no-data/108686>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 18, 2025, 8:45pm UTC](https://forum.inductiveautomation.com/t/problem-hiding-sub-view-if-there-is-no-data/108686 "2025-07-18T20:45:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NP209](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/np209/32/80704_2.png) [@NP209](https://forum.inductiveautomation.com/u/NP209)\
**Post date:** [July 18, 2025, 8:45pm UTC](https://forum.inductiveautomation.com/t/problem-hiding-sub-view-if-there-is-no-data/108686/1 "2025-07-18T20:45:58Z")

</div>

Hello, I'm running into an issue where I cannot disable the subview if there is no data in the subview to look at.

On my subview I have a parameter im passing through to the main view that says if there is data.

On the main view I was setting up a binding on the enable subview to switch off and on based on the value coming in, but it seems to ignore this and always block it.

has anyone else ran into this?

This is an example of what im trying to hide.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/c/ac4be4394d62cd996da04f98e018077d2222a021.png)

Here is an example of where im binding it and the value coming from the subview

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/1/61275d16961604a24519f7b6486d68ea5fb6c460.png)

This is my binding

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

---

<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:** [July 19, 2025, 12:21am UTC](https://forum.inductiveautomation.com/t/problem-hiding-sub-view-if-there-is-no-data/108686/2 "2025-07-19T00:21:04Z")

</div>

1. The `subview.enabled` applies to the whole table, not individual rows. It can't do what you want.
2. It appears that you are passing in a comment but your expression is checking for a numerical value (but it won't work anyway).

Instead modify your subview to show just the subview banner with the label, "No comments for this batch". You won't be able to hide the subview button for individual rows so you need to show something to the user when they click it.

---

<div class="post-metadata">

**Author:** ![NP209](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/np209/32/80704_2.png) [@NP209](https://forum.inductiveautomation.com/u/NP209)\
**Post date:** [July 21, 2025, 2:13pm UTC](https://forum.inductiveautomation.com/t/problem-hiding-sub-view-if-there-is-no-data/108686/3 "2025-07-21T14:13:35Z")

</div>

Ah okay, I was thinking I might have to resort to that. I was hoping after the weekend I would have a light bulb moment where I figured it out but this works too.

Thanks, I appreciate you!
