# Specifying the 'view' paramter in the system.perspective.navigate function causes 'no view' error

**URL:** <https://forum.inductiveautomation.com/t/specifying-the-view-paramter-in-the-system-perspective-navigate-function-causes-no-view-error/76277>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 12, 2023, 6:48pm UTC](https://forum.inductiveautomation.com/t/specifying-the-view-paramter-in-the-system-perspective-navigate-function-causes-no-view-error/76277 "2023-07-12T18:48:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cameron\_Nickle](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@Cameron\_Nickle](https://forum.inductiveautomation.com/u/Cameron_Nickle)\
**Post date:** [July 12, 2023, 6:48pm UTC](https://forum.inductiveautomation.com/t/specifying-the-view-paramter-in-the-system-perspective-navigate-function-causes-no-view-error/76277/1 "2023-07-12T18:48:29Z")

</div>

Hi all,

I'm currently working on passing a parameter between two pages via the navigation function. In all the examples I've seen the user will specify 'view = "/new-page" ', but if I do this I get the dreaded 'No View Found' error. If I don't specify the 'view' parameter the function works just fine to find the view but none of my parameters will be passed into the next page. I'm not quite sure what I'm missing.

Code for button:

```auto
system.perspective.navigate(view = '/updateuserview', params = {'user': self.getSibling("Main_User_table").custom.user})

```

URL:

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

Parameter on desired page:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/1/816ab00be2f797d1a9ad90f059d2346aa4aa6d06.png)

Thank you,

Cam

---

<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:** [July 12, 2023, 6:51pm UTC](https://forum.inductiveautomation.com/t/specifying-the-view-paramter-in-the-system-perspective-navigate-function-causes-no-view-error/76277/2 "2023-07-12T18:51:05Z")

</div>

I wouldn't expect a leading slash to be necessary if you're specifying a view; it should just be the exact path to the view in question. Can you show where you're seeing that in examples?

---

<div class="post-metadata">

**Author:** ![Cameron\_Nickle](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@Cameron\_Nickle](https://forum.inductiveautomation.com/u/Cameron_Nickle)\
**Post date:** [July 12, 2023, 6:55pm UTC](https://forum.inductiveautomation.com/t/specifying-the-view-paramter-in-the-system-perspective-navigate-function-causes-no-view-error/76277/3 "2023-07-12T18:55:44Z")

</div>

Sure,

This is the post I've been working with to try and pass the parameters:

> [@How to pass parameters using system.perspective.navagate](https://forum.inductiveautomation.com/t/how-to-pass-parameters-using-system-perspective-navagate/52852/7):
>
> Thank you for your response. Sorry for the confusion. I am using views. The “root” that I referred to is the root container (In the Project Browser tree, it is the element directly under the View name). This is a screenshot of the custom parameter that is on the Table. [image] I am setting the parameter in the onSelectionChange like this: self.custom.myCustParam = 11 In my button, I have an onActionPerformed event that sends does the navigation like this: system.perspective.navigate(view =…

And specifically the code on this manual page:  
[https://docs.inductiveautomation.com/display/DOC81/system.perspective.navigate](https://docs.inductiveautomation.com/display/DOC81/system.perspective.navigate)

Even if I remove the '/' from my path I still have the same issue of the 'No View Found' Error

---

<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:** [July 12, 2023, 6:56pm UTC](https://forum.inductiveautomation.com/t/specifying-the-view-paramter-in-the-system-perspective-navigate-function-causes-no-view-error/76277/4 "2023-07-12T18:56:54Z")

</div>

`updateUserView` is the name of your view, per the 'Primary View' section of the page.  
Are you passing `view=updateUserView` (camel-case), or `view=updateuserview` (all lowercase)?

---

<div class="post-metadata">

**Author:** ![Cameron\_Nickle](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@Cameron\_Nickle](https://forum.inductiveautomation.com/u/Cameron_Nickle)\
**Post date:** [July 12, 2023, 6:57pm UTC](https://forum.inductiveautomation.com/t/specifying-the-view-paramter-in-the-system-perspective-navigate-function-causes-no-view-error/76277/5 "2023-07-12T18:57:51Z")

</div>

I'm passing it the all lowercase one because I thought that was the URL specification

---

<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:** [July 12, 2023, 7:02pm UTC](https://forum.inductiveautomation.com/t/specifying-the-view-paramter-in-the-system-perspective-navigate-function-causes-no-view-error/76277/6 "2023-07-12T19:02:24Z")

</div>

Let's back up.  
`system.perspective.navigate` has three 'modes'.

1. If you provide a `page` argument, then you must provide a URL path _within the same Perspective project_, with or without a leading slash:

2. If you provide a `url` argument, your web browser will be directed to the supplied URL, which can be any valid URL you can access in your web browser:

3. If you provide a `view` argument, then you provide _the resource path_ to a view within your same project. So whatever the path is _in the project browser_ to the view you want to navigate to. Case sensitive.

You're opting for the 'view' mode by using `system.perspective.navigate(view=X)`. So you **must** use the exact path/name of a resource that exists in your project. _Or_, you can use `url=someUrlConfiguration`. It's your choice, but you have to be consistent.

---

<div class="post-metadata">

**Author:** ![Cameron\_Nickle](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@Cameron\_Nickle](https://forum.inductiveautomation.com/u/Cameron_Nickle)\
**Post date:** [July 12, 2023, 7:05pm UTC](https://forum.inductiveautomation.com/t/specifying-the-view-paramter-in-the-system-perspective-navigate-function-causes-no-view-error/76277/7 "2023-07-12T19:05:03Z")

</div>

That explains a lot. I was mismatching my view paths so that's why it couldn't find it. I swapped the view to the camel case name and it works fine and the parameters are being passed correctly too.

Thank you Paul 🙂
