{"id":2470,"date":"2017-05-03T07:13:27","date_gmt":"2017-05-03T07:13:27","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/salesforce\/?p=2470"},"modified":"2025-05-08T11:16:23","modified_gmt":"2025-05-08T11:16:23","slug":"using-enhanced-lists-in-visualforce-page","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/salesforce\/2017\/05\/03\/using-enhanced-lists-in-visualforce-page\/","title":{"rendered":"Using Enhanced Lists in Visualforce page"},"content":{"rendered":"<p style=\"text-align: justify;\">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 \u2018\u2019 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.<\/p>\n<p>Please find below code snippet to demonstrate the same:<\/p>\n<div id=\"attachment_2472\" style=\"width: 877px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2017\/05\/Image1-code-snippet-to-display-all-List-Views-on-VF-page.jpg\" target=\"_blank\" rel=\"noopener\"><img fetchpriority=\"high\" decoding=\"async\" aria-describedby=\"caption-attachment-2472\" class=\"wp-image-2472 size-full\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2017\/05\/Image1-code-snippet-to-display-all-List-Views-on-VF-page.jpg\" alt=\"Code snippet to display all List Views on VF page\" width=\"867\" height=\"101\" \/><\/a><p id=\"caption-attachment-2472\" class=\"wp-caption-text\">Code snippet to display all List Views on VF page<\/p><\/div>\n<p>The result of the above code snippet looks like:<\/p>\n<div id=\"attachment_2473\" style=\"width: 605px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2017\/05\/Image2-result-of-code-snippet-to-display-all-List-Views-on-VF-page.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" aria-describedby=\"caption-attachment-2473\" class=\"size-large wp-image-2473\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2017\/05\/Image2-result-of-code-snippet-to-display-all-List-Views-on-VF-page-1024x452.jpg\" alt=\"Result of code snippet to display all List Views on VF page\" width=\"595\" height=\"263\" \/><\/a><p id=\"caption-attachment-2473\" class=\"wp-caption-text\">Result of code snippet to display all List Views on VF page<\/p><\/div>\n<p>Please find below code snippet to display any specific List View on visualforce page.<\/p>\n<div id=\"attachment_2474\" style=\"width: 605px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2017\/05\/Image3-code-snippet-to-display-any-specific-List-View-on-VF-page.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" aria-describedby=\"caption-attachment-2474\" class=\"size-large wp-image-2474\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2017\/05\/Image3-code-snippet-to-display-any-specific-List-View-on-VF-page-1024x125.jpg\" alt=\"Code snippet to display any specific List View on VF page\" width=\"595\" height=\"73\" \/><\/a><p id=\"caption-attachment-2474\" class=\"wp-caption-text\">Code snippet to display any specific List View on VF page<\/p><\/div>\n<p>The result of the above code snippet looks like:<\/p>\n<div id=\"attachment_2475\" style=\"width: 605px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2017\/05\/Image4-result-of-code-snippet-to-display-any-specific-List-View-on-VF-page-.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2475\" class=\"size-large wp-image-2475\" src=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-content\/uploads\/2017\/05\/Image4-result-of-code-snippet-to-display-any-specific-List-View-on-VF-page--1024x449.jpg\" alt=\"Result of code snippet to display any specific List View on VF page\" width=\"595\" height=\"261\" \/><\/a><p id=\"caption-attachment-2475\" class=\"wp-caption-text\">Result of code snippet to display any specific List View on VF page<\/p><\/div>\n<p>We can also apply customizable properties to List views like <strong>rowsPerPage<\/strong> which determines the number of rows to be displayed on page, <strong>height and width<\/strong> of the list etc.<br \/>\nThus, we can display desired List Views on visual force page in a customized way.<\/p>\n<p><span style=\"font-size: Medium;\"><strong>About Us<\/strong><\/span><br \/>\n<a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a>\u00a0as a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners across the globe. We offers Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that requires apex code incorporation into the Salesforce platform.<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a>\u00a0has some unique solutions for Cloud CRM such as Salesforce integration with\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\">Sage Enterprise Management (Sage X3<\/a>),\u00a0Sage Intacct, <a href=\"https:\/\/www.greytrix.com\/product\/sage-100-erp\/gumu-100-salesforce-integration\">Sage 100\u00a0<\/a>and\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp\/gumu-300-salesforce-integration\">Sage 300 (Sage Accpac)<\/a>. We also offer best-in-class Cloud CRM\u00a0<a href=\"https:\/\/www.greytrix.com\/product\/crm-development\/salesforce-com\">Salesforce customization and development services<\/a> along with services such as Salesforce <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/data-migration-services\">Data Migration<\/a>, <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/integrated-application-development\">Integrated App development<\/a>, <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/custom-development\">Custom App development<\/a> and <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/maintenance-support\">Technical Support<\/a> to business partners and end users.<\/p>\n<p>Greytrix GUMU&#x2122; integration for Sage ERP \u2013 Salesforce is a 5-star app listed on <a href=\"https:\/\/appexchange.salesforce.com\/listingDetail?listingId=a0N30000000psM5EAI\" target=\"_blank\" rel=\"noopener\">Salesforce AppExchange<\/a>.<\/p>\n<p>For more information, please contact us at\u00a0<a href=\"mailto:salesforce@greytrix.com\">salesforce@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n<p><b>Related Posts<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2017\/03\/29\/two-factor-authentication\/\" target=\"_blank\" rel=\"noopener\">Two-factor Authentication<\/a><\/li>\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2016\/12\/29\/addingcreating-fieldset-in-salesforce\/\" target=\"_blank\" rel=\"noopener\">Adding\/Creating Fieldset in Salesforce.<\/a><\/li>\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2017\/03\/28\/translate-picklist-into-multiple-languages\/\" target=\"_blank\" rel=\"noopener\">Translate Picklist into Multiple Languages<\/a><\/li>\n<li><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2017\/03\/28\/access-frequently-used-salesforce-pages-reports-dashboards-and-others-by-using-shortcuts\/\" target=\"_blank\" rel=\"noopener\">Access frequently used Salesforce pages, Reports, Dashboards and others by using shortcuts<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>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,\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2017\/05\/03\/using-enhanced-lists-in-visualforce-page\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[111,220,392,526],"class_list":["post-2470","post","type-post","status-publish","format-standard","hentry","category-salesforce-srv","tag-enhanced-list","tag-list-view","tag-salesforce-development","tag-visualforce-page"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/2470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/comments?post=2470"}],"version-history":[{"count":1,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/2470\/revisions"}],"predecessor-version":[{"id":10613,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/2470\/revisions\/10613"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/media?parent=2470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/categories?post=2470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/tags?post=2470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}