# Issue passing parameter to window using system.util.retarget

**URL:** <https://forum.inductiveautomation.com/t/issue-passing-parameter-to-window-using-system-util-retarget/63490>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [August 26, 2022, 11:00am UTC](https://forum.inductiveautomation.com/t/issue-passing-parameter-to-window-using-system-util-retarget/63490 "2022-08-26T11:00:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nnaik](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@nnaik](https://forum.inductiveautomation.com/u/nnaik)\
**Post date:** [August 26, 2022, 11:00am UTC](https://forum.inductiveautomation.com/t/issue-passing-parameter-to-window-using-system-util-retarget/63490/1 "2022-08-26T11:00:33Z")

</div>

Hello,  
I one of my project I am trying to Open a window on another project on same gateway, though the window opens correctly the parameter I am trying to pass doesn’t show up in the Window.

**Project 1** :  
Script on template Label component/Mouse clicked:

```auto
selectedSite = event.source.parent.SiteID

system.util.retarget("Project_1",None,{'selectedSite': selectedSite , 'isRegional': True},["Site Views/Site Dashboard"])

```

**Project 2** :  
Snap of Site Dashboard Template Parameter, though the selectedSite has binding to one of the dropdown component it shouldn’t hamper passing the parameter right? I tried passing to another parameter for testing, slectedSite1 which has no binding but result is same:

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

Thanks !

---

<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:** [August 26, 2022, 11:45am UTC](https://forum.inductiveautomation.com/t/issue-passing-parameter-to-window-using-system-util-retarget/63490/2 "2022-08-26T11:45:05Z")

</div>

Your expectations for `params` are wrong. They do not act like window parameters, but as jython globals. Per the docs for [system.util.retarget()](https://docs.inductiveautomation.com/display/DOC79/system.util.retarget). The new client project needs to use `system.util.getGlobals()` to retrieve them.

---

<div class="post-metadata">

**Author:** ![nnaik](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@nnaik](https://forum.inductiveautomation.com/u/nnaik)\
**Post date:** [August 26, 2022, 12:09pm UTC](https://forum.inductiveautomation.com/t/issue-passing-parameter-to-window-using-system-util-retarget/63490/3 "2022-08-26T12:09:10Z")

</div>

So in Project 2 I can access the value at

```auto
system.util.getGlobals()['selectedSite']

Please correct me if i am wrong.
```

---

<div class="post-metadata">

**Author:** ![nnaik](https://avatars.discourse-cdn.com/v4/letter/n/53a042/32.png) [@nnaik](https://forum.inductiveautomation.com/u/nnaik)\
**Post date:** [August 29, 2022, 4:35am UTC](https://forum.inductiveautomation.com/t/issue-passing-parameter-to-window-using-system-util-retarget/63490/4 "2022-08-29T04:35:50Z")

</div>

[https://inductiveuniversity.com/videos/retargeting/8.1](https://inductiveuniversity.com/videos/retargeting/8.1)
