# Trying to access a template repeater in a script fired from a mouseClicked event

**URL:** <https://forum.inductiveautomation.com/t/trying-to-access-a-template-repeater-in-a-script-fired-from-a-mouseclicked-event/18476>\
**Category:** Ignition\
**Created:** [June 14, 2018, 7:04pm UTC](https://forum.inductiveautomation.com/t/trying-to-access-a-template-repeater-in-a-script-fired-from-a-mouseclicked-event/18476 "2018-06-14T19:04:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarredutt](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jarredutt/32/5393_2.png) [@jarredutt](https://forum.inductiveautomation.com/u/jarredutt)\
**Post date:** [June 14, 2018, 7:04pm UTC](https://forum.inductiveautomation.com/t/trying-to-access-a-template-repeater-in-a-script-fired-from-a-mouseclicked-event/18476/1 "2018-06-14T19:04:59Z")

</div>

Hello all,

I am trying to print out the contents of a template repeater that I’m using as a sort of customized report page. The idea is that they view the graphical representation of the data on one window, and they can click a button on that window to navigate to another window that has a more quantitative representation. The clients would like to be able to print that information out, which I have had success with so far if the component is anything but a template repeater but I can’t seem to get the script to find it. I am always returned with the attached error. I have looked through the container hierarchy tree, but I still can’t seem to get the right component. Thanks in advance for any help!!

Best,

Jarred ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/0b58b5a36f2be8c02b6bd38aec979199046ff6b8.JPG)

---

<div class="post-metadata">

**Author:** ![Stuart](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@Stuart](https://forum.inductiveautomation.com/u/Stuart)\
**Post date:** [June 14, 2018, 7:12pm UTC](https://forum.inductiveautomation.com/t/trying-to-access-a-template-repeater-in-a-script-fired-from-a-mouseclicked-event/18476/2 "2018-06-14T19:12:06Z")

</div>

Sort of a wild guess, but perhaps you’re not traversing the components correctly? I had problems with this in my project - [check out this question.](http://forum.inductiveautomation.com/t/refresh-template-repeater-data-from-a-template-inside-of-the-repeater/18176)

Need more parents!

---

<div class="post-metadata">

**Author:** ![jarredutt](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jarredutt/32/5393_2.png) [@jarredutt](https://forum.inductiveautomation.com/u/jarredutt)\
**Post date:** [June 14, 2018, 7:15pm UTC](https://forum.inductiveautomation.com/t/trying-to-access-a-template-repeater-in-a-script-fired-from-a-mouseclicked-event/18476/3 "2018-06-14T19:15:02Z")

</div>

Those pesky parents, thanks for your help Stuart!!

---

<div class="post-metadata">

**Author:** ![cmisztur2](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmisztur2/32/4243_2.png) [@cmisztur2](https://forum.inductiveautomation.com/u/cmisztur2)\
**Post date:** [June 15, 2018, 12:22pm UTC](https://forum.inductiveautomation.com/t/trying-to-access-a-template-repeater-in-a-script-fired-from-a-mouseclicked-event/18476/4 "2018-06-15T12:22:55Z")

</div>

I prefer to use system.util.sendMessage instead of tracking references.

> **[Exploiting Ignition’s system.util.sendMessage](https://medium.com/@chrismisztur/exploiting-ignitions-system-util-sendmessage-57a26513e0d7)**
>
> There are different ways to access attributes and invoke functions across components, windows, and clients. The typical approach to access…
