Can't get Switch in repeat region to work

I have a bootsrap table and in last column a Switch and a delete button. Each with Onclick even to load an SC action.
I can get the delete button to work but the switch always sends the row id 1. It should pick up the ID of each row it’s in but it’s not.

Capture3 Capture4

Community Page
Last updated: