Visualforce $Action for opening Sobject LIST page


/ Published in: XML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!-- For Custom Object -->
  2. <apex:outputLink value="{!URLFOR($Action.CustomObject__c.List, $ObjectType.CustomObject__c)}">
  3. CustomObject__c List
  4. </apex:outputLink>
  5.  
  6. <!-- For Standard Object like Contact -->
  7. <apex:outputLink value="{!URLFOR($Action.Contact.List, $ObjectType.Contact)}">
  8. Contact List
  9. </apex:outputLink>

URL: http://www.tgerm.com/2010/10/visualforce-action-code-samples.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.