Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <apex:commandLink value="{!user.Name}" action="{!userDetail}">
  2. <apex:paramname="userId"value="{!user.Id}"/>
  3. </apex:commandLink>
  4.  
  5. public PageReference userDetail() {
  6. String userId = ApexPages.currentPage().getParameters().get('userId');
  7. PageReference pageRef = new PageReference('/'+userId);
  8. return pageRef;
  9. }
  10.  
  11. HYPERLINK(Id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement