# How to make peer table inside a table group render on report dynamically

**URL:** <https://forum.inductiveautomation.com/t/how-to-make-peer-table-inside-a-table-group-render-on-report-dynamically/115204>\
**Category:** Ignition\
**Tags:** ignition81, reporting, perspective\
**Created:** [April 22, 2026, 2:53pm UTC](https://forum.inductiveautomation.com/t/how-to-make-peer-table-inside-a-table-group-render-on-report-dynamically/115204 "2026-04-22T14:53:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [April 22, 2026, 2:53pm UTC](https://forum.inductiveautomation.com/t/how-to-make-peer-table-inside-a-table-group-render-on-report-dynamically/115204/1 "2026-04-22T14:53:05Z")

</div>

I have a table group with several peer tables. Is it possible to stop one of the peer tables from rendering based off a dynamic variable passed into the report? I can successfully make the peer table invisible but that page the peer table appears on still loads.

---

<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:** [April 22, 2026, 3:19pm UTC](https://forum.inductiveautomation.com/t/how-to-make-peer-table-inside-a-table-group-render-on-report-dynamically/115204/2 "2026-04-22T15:19:15Z")

</div>

You need to make the nested table that drives the peer table return zero rows.

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [April 22, 2026, 3:39pm UTC](https://forum.inductiveautomation.com/t/how-to-make-peer-table-inside-a-table-group-render-on-report-dynamically/115204/3 "2026-04-22T15:39:55Z")

</div>

Currently I have a named query data source **param\_terms** that grabs my data. I follow up with a script called **script** that checks if the peer is enabled or not (a report parameter tied to a session variable).

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

Here is script:

```python
    terms_enabled = data['param_terms_enabled']
    if terms_enabled:
        pass
    else:
        data['param_terms'] = system.dataset.toDataSet([], [])
```

On the TableGroup I select the peer table called param\_terms. It has a Key of param\_terms.

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

This described setup right now shows either data from the named query or an empty dataset based off the session variable.

Can you explain where I need to go from here?

---

<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:** [April 22, 2026, 3:45pm UTC](https://forum.inductiveautomation.com/t/how-to-make-peer-table-inside-a-table-group-render-on-report-dynamically/115204/4 "2026-04-22T15:45:00Z")

</div>

I don't know how to expand your case. What I do know is that table groups will completely omit (no blank space) inner tables/objects that do not have a row in their (nested) control data. You may need to restructure your data to do this.

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [April 22, 2026, 3:49pm UTC](https://forum.inductiveautomation.com/t/how-to-make-peer-table-inside-a-table-group-render-on-report-dynamically/115204/5 "2026-04-22T15:49:39Z")

</div>

Can you expand on "(nested) control data"? What does that mean? How can I generate nested control data today?

---

<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:** [April 22, 2026, 3:52pm UTC](https://forum.inductiveautomation.com/t/how-to-make-peer-table-inside-a-table-group-render-on-report-dynamically/115204/6 "2026-04-22T15:52:24Z")

</div>

> [@Report with Scripted Nested Data](https://forum.inductiveautomation.com/t/report-with-scripted-nested-data/11801):
>
> The report datasource scripting examples explain how to access the nested data in another key for use constructing a custom dataset. What I don’t see is how to construct nested data that would be suitable for use with a child table in a table group. I have a parent dataset that I’m constructing via script due to annoying limitations of an ancient SQL Server 2000 instance. I need a subquery for each row that could be done with a normal query, but there’s no way to add a regular subquery to a s…

Table groups need **nested** data for full features. Your data isn't nested.

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [April 22, 2026, 4:43pm UTC](https://forum.inductiveautomation.com/t/how-to-make-peer-table-inside-a-table-group-render-on-report-dynamically/115204/7 "2026-04-22T16:43:59Z")

</div>

I followed along with your example and generated nested data but it doesn't seem to honor the Start on new page option. That is, if I have Start on new page selected I will always get the final page showing.

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

Is that behavior what you have seen before?

---

<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:** [April 22, 2026, 4:59pm UTC](https://forum.inductiveautomation.com/t/how-to-make-peer-table-inside-a-table-group-render-on-report-dynamically/115204/8 "2026-04-22T16:59:23Z")

</div>

I haven't used "start on a new page".
