Redirect to viewing record of resource from a custom page

I tried adding clickable rows to my custom page but I get an error (attached) and therefore unable to go the viewing page of this resource. How can I achieve this behaviour?
image.png
image.png
Was this page helpful?