# Get Component in Window from Template in Template Repeater

**URL:** <https://forum.inductiveautomation.com/t/get-component-in-window-from-template-in-template-repeater/12483>\
**Category:** Ignition\
**Created:** [December 20, 2016, 5:53am UTC](https://forum.inductiveautomation.com/t/get-component-in-window-from-template-in-template-repeater/12483 "2016-12-20T05:53:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bfaivre](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@bfaivre](https://forum.inductiveautomation.com/u/bfaivre)\
**Post date:** [December 20, 2016, 5:53am UTC](https://forum.inductiveautomation.com/t/get-component-in-window-from-template-in-template-repeater/12483/1 "2016-12-20T05:53:22Z")

</div>

Hello,

I have a defined template. I’m then using a template repeater in my window with the defined template. I have another component on the window that I would like each template in the template repeater to be able to access. How can I accomplish this?

Brian

---

<div class="post-metadata">

**Author:** ![bfaivre](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@bfaivre](https://forum.inductiveautomation.com/u/bfaivre)\
**Post date:** [December 20, 2016, 3:23pm UTC](https://forum.inductiveautomation.com/t/get-component-in-window-from-template-in-template-repeater/12483/2 "2016-12-20T15:23:44Z")

</div>

I should mention that I’d like to use this value from the main window for a calculation that each template row needs to perform.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 21, 2016, 4:44pm UTC](https://forum.inductiveautomation.com/t/get-component-in-window-from-template-in-template-repeater/12483/3 "2016-12-21T16:44:34Z")

</div>

The “simplest” option would be to go straight to the parent window object, then drill down to the component; you’ll find that trying to chain parents from a template instance in a repeater to the window gets a bit excessive.  
[docs.inductiveautomation.com/di … rentWindow](https://docs.inductiveautomation.com/display/DOC79/system.nav.getCurrentWindow)  
[docs.inductiveautomation.com/di … .getWindow](https://docs.inductiveautomation.com/display/DOC79/system.gui.getWindow)
