Sunday 20 July 2014

                                 Redirecting to Object List Page


You can create visualforce page which will you redirect to list view of Object, this  will  be helpful when you don't have any Tab left. 

This can be useful for both standard and custom objects.


Create a vf page with a name you wish. In apex:page tag add action

action="{!URLFOR($Action.Account.List, $ObjectType.Account)}"

and save the page. As soon you save the page you will be redirected to Account list view page.

You can also use this for custom objects as well, all you have to do is to remove the Account and replace with API name of custom object.


action="{!URLFOR($Action.Employee_Name__c.List, $ObjectType.Employee_Name__c)}"

You can also create a custom link and add it to your Home Page layout

No comments:

Post a Comment