-
Goal: Want to know best practice for database queries using currentSourceRow
-
Steps: Add a row action for Delete. Either use javascript to trigger a query with additional scope, or run a control query with no context.
-
Details:
Is there any effective difference between using additional scope to pass the currentSourceRow to a query compared to using tableName.selectedSourceRow? Particularly when using row Actions on the table?
Hello @BrianP
In that specific scenario there's no difference, except the fact that you have to set up additionalScope on the query if you want to use currentSourceRow.
When pressing the row action that row will be selected by default, so you can set up your database query to delete row where id = {{table.selectedSourceRow.id}}