# Pass row data in navigate url parameter

**URL:** <https://forum.inductiveautomation.com/t/pass-row-data-in-navigate-url-parameter/77939>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 16, 2023, 3:02pm UTC](https://forum.inductiveautomation.com/t/pass-row-data-in-navigate-url-parameter/77939 "2023-08-16T15:02:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![msitson](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@msitson](https://forum.inductiveautomation.com/u/msitson)\
**Post date:** [August 16, 2023, 3:02pm UTC](https://forum.inductiveautomation.com/t/pass-row-data-in-navigate-url-parameter/77939/1 "2023-08-16T15:02:05Z")

</div>

I have a functionality where a user can double click on a table row and it will redirect you to another page. I have a navigate event with one parameter being passed, which is the row's ID. This navigate is placed on the table's onRowDoubleClick event. Currently, how I am obtaining and passing the row ID is through a parameter that is binded to the table's selection.data[0] prop. This seems to work okay, but I've found a problem where if users were to double click too quickly the parameter passed would be null since the selection data would not be initialized in time. I was wondering if there was another way I could obtain and pass the row data through the navigation url param or another way to approach this functionality.

onDoubleClickEvent:

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

Parameter Binding:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/f/d/fdd3625c17b73b05899ff071a2d00079a79c7d7e.png)

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [August 16, 2023, 5:10pm UTC](https://forum.inductiveautomation.com/t/pass-row-data-in-navigate-url-parameter/77939/2 "2023-08-16T17:10:11Z")

</div>

Use a script instead, passing the data of the event. In your case, the `row`.

`row`:

```auto
The unique row index as it is represented in the source data. Also known as the row ID.

```

Implement like so:

```auto
def runAction(self, event):
	rowId = event.row
	system.perspective.navigate(page="/Edit/{0}".format(rowId))

```

Be cautious in doing this however, as many users get hung up due to type differences when using params in navigation. In instances like this where the page being navigated to expects a numeric value instead of a string, make sure you're handling incoming params in a type-safe manner, ie: make sure you're casting this incoming param used as a rowId as an int.

---

<div class="post-metadata">

**Author:** ![msitson](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@msitson](https://forum.inductiveautomation.com/u/msitson)\
**Post date:** [August 16, 2023, 5:29pm UTC](https://forum.inductiveautomation.com/t/pass-row-data-in-navigate-url-parameter/77939/3 "2023-08-16T17:29:30Z")

</div>

Thank you for pointing me in the right direction. I utilized event.value to retrieve the row data. More specifically I used event.value.SubmissionId to retrieve the ID. Sorry for the poor wording, looking back I stated I needed row ID, but what I should've said is the ID column. Thanks again.
