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

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?

yes, add these to your viewparams of the template


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