# Hide a docked View with url parameter

**URL:** <https://forum.inductiveautomation.com/t/hide-a-docked-view-with-url-parameter/41718>\
**Category:** Ignition\
**Tags:** perspective, ignition80\
**Created:** [December 22, 2020, 12:42pm UTC](https://forum.inductiveautomation.com/t/hide-a-docked-view-with-url-parameter/41718 "2020-12-22T12:42:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [December 22, 2020, 12:42pm UTC](https://forum.inductiveautomation.com/t/hide-a-docked-view-with-url-parameter/41718/1 "2020-12-22T12:42:50Z")

</div>

I need to be able to hide the docked navigation View for some clients (e.g. when run inside a web browser inside of Vision, while doing a staged migration from Vision to Perspective). I just can’t get it working though by passing a param.

I have a param created on my test View `view.params.showHeader` which is defaulted to `true`. I’ve added it as a url param to the page. I’m displaying the showHeader value on the page, and when I pass “/false” to the page url, it correctly shows false.  
I just don’t know how to use it. I’ve tried adding a script to close the dock if the `showHeader` value is false on:

1. the View startup event handler.  
This doesn’t work as the param seems to be set after this function has run.
2. the `root`'s startup event handler. Same result
3. to a change value script on the `showHeader` property. This doesn’t seem to fire at all. I know this because I added a line to the code to set the value of another custom property which I’m also displaying on the screen so that I know if the script has actually run or not.

What most of the time _does_ work is finding the slowest loading component in the View and putting the code to close the dock on that, that’s assuming there _is_ a slow-loading component. But that’s a stupid solution…

I’m not sure what to try next… any suggestions?

Edit: I found one bug with my script, still not working though. When “false” is passed in via a url parameter, it actually comes in as a unicode, not a bool. I needed to convert it into a bool before checking if it’s `False` in my `if` statement.

---

<div class="post-metadata">

**Author:** ![chandler](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@chandler](https://forum.inductiveautomation.com/u/chandler)\
**Post date:** [December 22, 2020, 3:40pm UTC](https://forum.inductiveautomation.com/t/hide-a-docked-view-with-url-parameter/41718/2 "2020-12-22T15:40:14Z")

</div>

I am not sure how to fix your problem, but how imperative is it that the navigation view is hidden for some users? With the URL parameter, they could just change the URL to get access to navigation view, and therefore other areas of your project, right?

---

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [December 22, 2020, 3:56pm UTC](https://forum.inductiveautomation.com/t/hide-a-docked-view-with-url-parameter/41718/3 "2020-12-22T15:56:52Z")

</div>

> [@nminchin](#):
>
> I’m not sure what to try next… any suggestions?

Is it possible for you to use the breakpoint feature in the dock? This would assume your Vision clients browser runs at a smaller resolution then your non-vision web browsers. If you could find a happy size your dock would auto-disappear when being loaded to a devices' res smaller than the defined breakpoint.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [December 22, 2020, 8:37pm UTC](https://forum.inductiveautomation.com/t/hide-a-docked-view-with-url-parameter/41718/4 "2020-12-22T20:37:31Z")

</div>

Not an option I’m afraid, as we have vision clients of various sizes that correspond in width to any perspective clients that would be open as well. We’re essentially trying to seamlessly integrate the new Perspective views into the Vision project, while the vision project is still being used. So for each new page in Perspective, we have a new page in Vision that only has a fullscreen Web browser component whose url is tied to The new Perspective page’s url, sans navigation dock.

@chandler yes as i don’t want stacked navigation bars (the vision one and the perspective one), and I’m not showing the url in Vision so the users can’t change this.

@paul-griffith @cmallonee, any ideas?

---

<div class="post-metadata">

**Author:** ![sqlwalkermj](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sqlwalkermj](https://forum.inductiveautomation.com/u/sqlwalkermj)\
**Post date:** [March 22, 2021, 8:17pm UTC](https://forum.inductiveautomation.com/t/hide-a-docked-view-with-url-parameter/41718/5 "2021-03-22T20:17:37Z")

</div>

@nminchin - did you good way to hid the docked view using a url parameter?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [March 22, 2021, 8:21pm UTC](https://forum.inductiveautomation.com/t/hide-a-docked-view-with-url-parameter/41718/6 "2021-03-22T20:21:31Z")

</div>

No, I used two page urls both pointing at the same View: one with no dock changes, the other I added a duplicate header/nav dock with it set to onDemand so that it was hidden on launch. Then I launched the latter page when I didn’t want a nav header.  
Defining a shared dock again in a page will override the shared dock settings with the settings in the page dock definition

---

<div class="post-metadata">

**Author:** ![sqlwalkermj](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@sqlwalkermj](https://forum.inductiveautomation.com/u/sqlwalkermj)\
**Post date:** [March 22, 2021, 8:22pm UTC](https://forum.inductiveautomation.com/t/hide-a-docked-view-with-url-parameter/41718/7 "2021-03-22T20:22:54Z")

</div>

Thanks for the reply! I actually just stumbled onto that same suggestion from one of your other threads.

> [@Open a View without the shared dock](http://forum.inductiveautomation.com/t/open-a-view-without-the-shared-dock/41807/2):
>
> You’re mixing terminology. VIEWS do not have shared docks - only PAGES do. so if you want to open a View then you just need to use system.perspective.navigate(view='\<view\_path\>'). If you want to open a PAGE without the shared Docked View you need to override the shared setting. Overriding a shared Docked View: You should see a configuration which looks like this, with the shared DOcked View greyed-out: [Screen Shot 2020-12-28 at 8.27.40AM] You should click the “+ Add” button, and configure a…

I will go the same route - thanks again.
