This is a similar request to "close open details list page via code" - April 2023
I have a grid action on a list page to show/hide a details list page. I would like to insert an audit record when the list item is clicked to show the preview. Adding the audit record is not the issue, I just can't seem to find a way to trigger it and to pass the parameter of the index of the row clicked. I do not want to add a button in the main list page. It has to be an action on clicking the row.