# Can a table row know its own row number? - Perspective

**URL:** <https://forum.inductiveautomation.com/t/can-a-table-row-know-its-own-row-number-perspective/90502>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 16, 2024, 2:56pm UTC](https://forum.inductiveautomation.com/t/can-a-table-row-know-its-own-row-number-perspective/90502 "2024-05-16T14:56:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Salisbury](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/thomas_salisbury/32/62046_2.png) [@Thomas\_Salisbury](https://forum.inductiveautomation.com/u/Thomas_Salisbury)\
**Post date:** [May 16, 2024, 2:56pm UTC](https://forum.inductiveautomation.com/t/can-a-table-row-know-its-own-row-number-perspective/90502/1 "2024-05-16T14:56:42Z")

</div>

I am trying to embed a dropdown in a table field. everything so far is working perfectly, but i need to pass the id(from a database query) of that row, back to the template that is holding the dropdown. The only options i seem to be able to find is only the selected row. Surely there is a way for each row to know its only data so I can pass that id?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [May 16, 2024, 2:59pm UTC](https://forum.inductiveautomation.com/t/can-a-table-row-know-its-own-row-number-perspective/90502/2 "2024-05-16T14:59:06Z")

</div>

yes, add these to your viewparams of the template

> [@Accessing data from a dropdown menu instantiated as an embedded view in a table](https://forum.inductiveautomation.com/t/accessing-data-from-a-dropdown-menu-instantiated-as-an-embedded-view-in-a-table/49301/10):
>
> ```python
> column
> columnIndex
> row
> rowIndex
> value
> rowData
> 
> ```

---

<div class="post-metadata">

**Author:** ![Thomas\_Salisbury](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/thomas_salisbury/32/62046_2.png) [@Thomas\_Salisbury](https://forum.inductiveautomation.com/u/Thomas_Salisbury)\
**Post date:** [May 16, 2024, 3:09pm UTC](https://forum.inductiveautomation.com/t/can-a-table-row-know-its-own-row-number-perspective/90502/3 "2024-05-16T15:09:27Z")

</div>

Thank you. I did not know those would be auto passed to the params.
