If you can switch to a power table this is very easy to accomplish.
In the onPopupTrigger extension function simply add these 2 lines
if rowIndex > -1:
self.selectedRow = rowIndex
If you have to stick with a standard table then I know it is possible to do but I don’t remember how at the moment. We used to have script in place to handle it before we switched over to the power table.
If you can’t move to a power table and nobody else posts a solution I can probably dig through our project archives and find an answer.