# Navigate to another view by fetching row data on clicking link/Button in column in Perspective Table\_Render Type View

**URL:** <https://forum.inductiveautomation.com/t/navigate-to-another-view-by-fetching-row-data-on-clicking-link-button-in-column-in-perspective-table-render-type-view/83565>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 28, 2023, 8:53am UTC](https://forum.inductiveautomation.com/t/navigate-to-another-view-by-fetching-row-data-on-clicking-link-button-in-column-in-perspective-table-render-type-view/83565 "2023-12-28T08:53:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![kavya\_shree](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kavya\_shree](https://forum.inductiveautomation.com/u/kavya_shree)\
**Post date:** [December 28, 2023, 8:53am UTC](https://forum.inductiveautomation.com/t/navigate-to-another-view-by-fetching-row-data-on-clicking-link-button-in-column-in-perspective-table-render-type-view/83565/1 "2023-12-28T08:53:18Z")

</div>

Hi Team,  
I have table in view 1 - which has data coming from script calling query. In last column I have embedded link component by render type : view

On clicking on this link I want to navigate to View 2 and fetch the corresponding row data and show in View 2 components.

View 2 contains text boxes for each column.

View 1:

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

View 2:

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

I referred other links in the forum using message handler and passing parameters but I am not able to achieve.

Can you please suggest which is the better way with steps.

Thank you.

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [December 28, 2023, 9:34am UTC](https://forum.inductiveautomation.com/t/navigate-to-another-view-by-fetching-row-data-on-clicking-link-button-in-column-in-perspective-table-render-type-view/83565/2 "2023-12-28T09:34:54Z")

</div>

Pass `view.params.rowData` from the 'Link' view to View 2 in a python script attached to the link via an onClick Event.  
Pass the data as parameters attached to the call `system.perspective.navigate()` as per the documentation linked.  
`rowData` contains all the data from the row in the query, and you can populate View 2 from that data with indirect bindings.

[https://docs.inductiveautomation.com/display/DOC81/system.perspective.navigate](https://docs.inductiveautomation.com/display/DOC81/system.perspective.navigate)

---

<div class="post-metadata">

**Author:** ![kavya\_shree](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kavya\_shree](https://forum.inductiveautomation.com/u/kavya_shree)\
**Post date:** [December 29, 2023, 4:38am UTC](https://forum.inductiveautomation.com/t/navigate-to-another-view-by-fetching-row-data-on-clicking-link-button-in-column-in-perspective-table-render-type-view/83565/3 "2023-12-29T04:38:38Z")

</div>

I got the solution using Message Handler, But I want to know using navigate.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/c/8c20aef0a3793abd83b0a329ff2485e231cb77f5.png)

on clickevent- Link- fetching table rowdata (Note:SAPOrderNumber is Column name, ordernumber is the param created in View 2 that I need to navigate )

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

Navigation is not happening, on passing url I am able to navigate but not getting the row value in view2  
please guide where I am wrong. Please guide on indirect binding.

View 2:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/4/04201e665591b766f7d139ab6dbb44b4441ee5c1.png)  
binded to text  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/4/149147a7e4d534b0bcf87a2b36af7ef5a5c4b374.png)

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [December 29, 2023, 5:23am UTC](https://forum.inductiveautomation.com/t/navigate-to-another-view-by-fetching-row-data-on-clicking-link-button-in-column-in-perspective-table-render-type-view/83565/4 "2023-12-29T05:23:05Z")

</div>

First off, from the screenshot you posted of the View 2, your navigate code should be:

`system.perspective.navigate(view = 'Page/Embedded/Start_Complete_Line_Setup_test',params = {'ordernumber':orderNo})`

Don't confuse a URL with a view path, there are separate navigate method parameters for each.

If that still doesnt work, try manually setting:  
`orderNo = 4444444`  
in the onClick handler and see if the value is passed.

I just tested the setup here with a fixed value and it passed correctly.  
If manually setting the value works, then make the link text bind to the order number to verify that you are getting the correct order number. I tested your setup here, and as long as the correct order number was in the `rowData.SAPOrderNumber` it was getting through to the window.

---

<div class="post-metadata">

**Author:** ![kavya\_shree](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kavya\_shree](https://forum.inductiveautomation.com/u/kavya_shree)\
**Post date:** [December 29, 2023, 8:29am UTC](https://forum.inductiveautomation.com/t/navigate-to-another-view-by-fetching-row-data-on-clicking-link-button-in-column-in-perspective-table-render-type-view/83565/5 "2023-12-29T08:29:50Z")

</div>

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

Navigation is not happening on clicking on link from View 1 table and value is not passing.  
can you please check.

View 2. param: value not changing  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/7/d796c6d526441e2ff27de17df4e6ddcd31804877.png)

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [December 29, 2023, 8:36am UTC](https://forum.inductiveautomation.com/t/navigate-to-another-view-by-fetching-row-data-on-clicking-link-button-in-column-in-perspective-table-render-type-view/83565/6 "2023-12-29T08:36:28Z")

</div>

What does the browser show?

---

<div class="post-metadata">

**Author:** ![kavya\_shree](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kavya\_shree](https://forum.inductiveautomation.com/u/kavya_shree)\
**Post date:** [December 29, 2023, 8:41am UTC](https://forum.inductiveautomation.com/t/navigate-to-another-view-by-fetching-row-data-on-clicking-link-button-in-column-in-perspective-table-render-type-view/83565/7 "2023-12-29T08:41:05Z")

</div>

on clicking on link from view 1 table, browser showing below link:  
my page URL is : /testlink

([http://localhost](http://localhost):xxxx/data/perspective/client/Setup\_Monitoring\_Screen\_version4/testlink)

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [December 29, 2023, 10:40am UTC](https://forum.inductiveautomation.com/t/navigate-to-another-view-by-fetching-row-data-on-clicking-link-button-in-column-in-perspective-table-render-type-view/83565/8 "2023-12-29T10:40:01Z")

</div>

What does it show when you have clicked the link, not what is in the URL bar.  
When you click the link, it should navigate to View 2, if it doesnt, verify the path to the page is correct. Once it navigates to the correct page on click, show us what the output on the screen is.

---

<div class="post-metadata">

**Author:** ![kavya\_shree](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kavya\_shree](https://forum.inductiveautomation.com/u/kavya_shree)\
**Post date:** [December 29, 2023, 11:23am UTC](https://forum.inductiveautomation.com/t/navigate-to-another-view-by-fetching-row-data-on-clicking-link-button-in-column-in-perspective-table-render-type-view/83565/9 "2023-12-29T11:23:25Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/8/28d2a8f38219708930ec9b7536dd057ebe41a26d.png)

after clicking on this link, I am staying in same page, I checked the path of view 2 specified in link script.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/8/28d2a8f38219708930ec9b7536dd057ebe41a26d.png)

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

please guide where I am wrong, I got the output another method using url parameters, but I want to know this method.

Thanks

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [December 30, 2023, 12:25am UTC](https://forum.inductiveautomation.com/t/navigate-to-another-view-by-fetching-row-data-on-clicking-link-button-in-column-in-perspective-table-render-type-view/83565/11 "2023-12-30T00:25:44Z")

</div>

I think it will be something in the way the project is set up.  
It will be hard for me to diagnose without the project file in front of me.  
Not sure if you have a demo project with these parts in it you can share?  
You can DM me the files and I can post the results on this thread if that is allowable.

---

<div class="post-metadata">

**Author:** ![kavya\_shree](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kavya\_shree](https://forum.inductiveautomation.com/u/kavya_shree)\
**Post date:** [January 13, 2024, 9:16pm UTC](https://forum.inductiveautomation.com/t/navigate-to-another-view-by-fetching-row-data-on-clicking-link-button-in-column-in-perspective-table-render-type-view/83565/12 "2024-01-13T21:16:58Z")

</div>

Thank you.  
I got the solution:  
I will post the steps shortly
