Select first record on filtered data in data details component

Hi

i have a list of users. This list is filtered based on click of 7 button.
I need the Data Details component shows everytime the first record of the filterd list.
I used this solution found in community but it works only when the first time the page is loaded.

first record in data detail

When I filter the list with the click of the button, the data detail is empty.
Thanks.

Community Page
Last updated: