Salesforce provides a way to create List Views on any Standard or Custom object for easier access of desired records. We can create List view on any object by clicking on its tab. But along with this, salesforce also provides a flexibility to display these List Views on any custom visualforce page. To achieve this, Salesforce provides a dedicated tag named as ‘’ which allows user to display either all List Views created on an Object or any specific List view by specifying its Id. Whenever user does not specify any list id, it will display picklist of all the List Views created on an Object.

Please find below code snippet to demonstrate the same:

Code snippet to display all List Views on VF page

Code snippet to display all List Views on VF page

The result of the above code snippet looks like:

Result of code snippet to display all List Views on VF page

Result of code snippet to display all List Views on VF page

Please find below code snippet to display any specific List View on visualforce page.

Code snippet to display any specific List View on VF page

Code snippet to display any specific List View on VF page

The result of the above code snippet looks like:

Result of code snippet to display any specific List View on VF page

Result of code snippet to display any specific List View on VF page

We can also apply customizable properties to List views like rowsPerPage which determines the number of rows to be displayed on page, height and width of the list etc.
Thus, we can display desired List Views on visual force page in a customized way.

Also Read:
1. Two-factor Authentication
2. Adding/Creating Fieldset in Salesforce.
3. Translate Picklist into Multiple Languages
4. Access frequently used Salesforce pages, Reports, Dashboards and others by using shortcuts

About Us
Greytrix is one stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customization’s, data migration, system integrations, third party add-on development and implementation expertise.

Greytrix have some unique solutions for Cloud CRM such as Salesforce integration with Sage X3, Sage 100 and Sage 300. We also offers best-in-class Cloud CRM Salesforce customization and development services to business partners and end users. Greytrix have some unique solutions for On-Premise CRM such as Sage CRM integration with Sage X3, Sage 100, Sage 300, Sage 500 and Sage 50 . We also offers best-in-class On-Premise Sage CRM customization and development services to business partners and end users.

For more information, please contact us at salesforce@greytrix.com. We will be glad to assist you.

Comments are closed.