function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
srvas137srvas137 

if i click a link in pageblocktable how can i redirect to particular record edit page

i displayed account names in pageblocktable

 

if i click one account name in pageblocktable it will goes to their that record edit page

Best Answer chosen by Admin (Salesforce Developers) 
vishal@forcevishal@force

Use <apex:outputLink> for the Name column, it will then redirect the user to the edit page.

 

Something like this:

 

<apex:pageBlockTable value="{!lstAccounts}" var="a">

     <apex:column headerValue = "Name">

           <apex:outputLink value="/{!a.Id}/e">{!a.Name> </apex:outputLink>

     </apex:column>

</apex:pageBlockTable>