# Passing a param to Main header

**URL:** <https://forum.inductiveautomation.com/t/passing-a-param-to-main-header/61547>\
**Category:** Ignition\
**Created:** [July 6, 2022, 7:14am UTC](https://forum.inductiveautomation.com/t/passing-a-param-to-main-header/61547 "2022-07-06T07:14:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip\_08012](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@Philip\_08012](https://forum.inductiveautomation.com/u/Philip_08012)\
**Post date:** [July 6, 2022, 7:14am UTC](https://forum.inductiveautomation.com/t/passing-a-param-to-main-header/61547/1 "2022-07-06T07:14:49Z")

</div>

Hi All,

I am using a menu tree with a target that carry’s the site name to another screen using the page URL with :/SiteID. I want to pass the same paran to my main docked header.  
but i cant find a way to pass the param to a docked view. Has anyone else found a solution to this problem?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/7/8765316dd89868cd355dda613a09f3095a5c6d03.png)

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

---

<div class="post-metadata">

**Author:** ![Ryan\_Christian\_Lacan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan_christian_lacan/32/35201_2.png) [@Ryan\_Christian\_Lacan](https://forum.inductiveautomation.com/u/Ryan_Christian_Lacan)\
**Post date:** [July 8, 2022, 9:13pm UTC](https://forum.inductiveautomation.com/t/passing-a-param-to-main-header/61547/2 "2022-07-08T21:13:17Z")

</div>

Hey Philip,

You can “pass” a parameter value onto your docked header from the primary view. Create a custom session prop, create a Custom Parameter on your docked header view then bind that to the Custom Session Prop that you just created. On your Primary View Parameter, right click and select “add change script” then set the Custom Session Prop equal to the currentValue (ex. self.session.custom.test = currentValue.value). Depending on your setup, you might have to add multiple custom session props. Hope this helps!

Regards,
