New Table - Custom Column with Button?

Both currentRow and currentSourceRow should be in scope for the event handler!

You can use this either directly with an event handler action:

Or trigger a query with the Run script action to pass the scope along: