# Load subview data only on demand

**URL:** <https://forum.inductiveautomation.com/t/load-subview-data-only-on-demand/105449>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 23, 2025, 1:57am UTC](https://forum.inductiveautomation.com/t/load-subview-data-only-on-demand/105449 "2025-04-23T01:57:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgohche](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@tgohche](https://forum.inductiveautomation.com/u/tgohche)\
**Post date:** [April 23, 2025, 1:57am UTC](https://forum.inductiveautomation.com/t/load-subview-data-only-on-demand/105449/1 "2025-04-23T01:57:07Z")

</div>

Is it possible to load data in the subview when the arrow is clicked instead of pre-loading all the subviews for each row? I saw an article [Perspective - Table | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-display-palette/perspective-table#rows-properties) about row and rowIndex. But I don't know where or how to grab the rowIndex parameter. Thank you

---

<div class="post-metadata">

**Author:** ![ryan.perretta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.perretta/32/75110_2.png) [@ryan.perretta](https://forum.inductiveautomation.com/u/ryan.perretta)\
**Post date:** [April 23, 2025, 4:03pm UTC](https://forum.inductiveautomation.com/t/load-subview-data-only-on-demand/105449/2 "2025-04-23T16:03:12Z")

</div>

I figure you could use the onSubviewExpand Component Action in the table.

Don't pass any subview parameters on the initial table load. In this action, get the row (`event.row`) and use that to access the correct row in the table and update its record with the subview parameters.

Assuming all of your bindings are set up correctly I think this should work.

---

<div class="post-metadata">

**Author:** ![tgohche](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@tgohche](https://forum.inductiveautomation.com/u/tgohche)\
**Post date:** [April 23, 2025, 4:48pm UTC](https://forum.inductiveautomation.com/t/load-subview-data-only-on-demand/105449/3 "2025-04-23T16:48:48Z")

</div>

Awesome. Thank you! I think I figured out with this method
