function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kishore DasariKishore Dasari 

How to display more number of list views as pick list by using lightning list view?

How to display more number of list views as pick list by using lightning:listview feature?
<lightning:listView aura:id="listViewQuotes"
objectApiName="Quote"
listName="DeveloperNameofListView1"


As of now, only DeveloperNameofListView1 is coming, but I need more listviews to be shown in that component. How to achieve it?

Khan AnasKhan Anas (Salesforce Developers) 
Hi Kishore,

Greetings to you!

You need to create a custom drop-down which will help you to change list view directly from lightning component. Please refer to the below link to create Dynamic Reusable Custom ListView in lightning component.

http://sfdcmonkey.com/2019/02/03/dynamic-list-view-salesforce-lightning/

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas