I am outputting a table from a list in my controller using apex:repeat
.
In one of my columns, I want to have a link that will open the record for detail view
I want a link like this https://www.salesforce.com/apex/SystemChangeRequest?id=a3K8E0000000B7S
.
as my detail page is called SystemChangeRequest
and the id of the record is a3K8E0000000B7S
so I have tried this:
<td>
<apex:outputLink value="/apex/SystemChangeRequest/?id=!{Requests.id}">!{Requests.id}</apex:outputLink>
</td>
But the link being rendered in the browser is:
https://cs87.salesforce.com/apex/SystemChangeRequest/?id=!%7BRequests.id%7D
so it is giving an 'invalid URL' error.
So what am I missing or doing wrong?