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
golugolu 

lightning list view

Hi,

I am creating a lightning component which will display the list view for a custom component. 
Can anybody please tell me how do i add filters,inline editing and mass update action for it ?

Thanks
Best Answer chosen by golu
sfdcMonkey.comsfdcMonkey.com
Hi golu,
you can use <lightning:listView > tag for it :
<lightning:listView aura:id="listViewAccounts"
    objectApiName="CustomObj__c"
    listName="My_Accounts"
    rows="5"
    showActionBar="false"
    enableInlineEdit="true"
    showRowLevelActions="false"
/>
for full refrence :
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_lightning_listView.htm
Thanks , let us know if it helps you 
http://sfdcmonkey.com

All Answers

sfdcMonkey.comsfdcMonkey.com
Hi golu,
you can use <lightning:listView > tag for it :
<lightning:listView aura:id="listViewAccounts"
    objectApiName="CustomObj__c"
    listName="My_Accounts"
    rows="5"
    showActionBar="false"
    enableInlineEdit="true"
    showRowLevelActions="false"
/>
for full refrence :
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_lightning_listView.htm
Thanks , let us know if it helps you 
http://sfdcmonkey.com
This was selected as the best answer
golugolu
Thanks Piyush. I thought it is just available for standard object which LEX support. :). I tried it out and it is working fine.
golugolu
But i couldnt see the filters . Are you sure filters is also present or do i need to take care of it in object list view which i created to be referred in the custom component?
 
sfdcMonkey.comsfdcMonkey.com
You can configure inline editing. Other features aren't configurable. Additionally, the following features are not supported via the lightning:listView UI.
  • Creating or deleting of list views
  • Modifying of the list view filter
  • Switching to other list views
golugolu
Hi Piyush,

Any workaround for mass update of records using lightning:listView?

Thanks