I have an app page that needs to display records from a particular list view. I have created a simple component using lightning:listview component.
I am able to use this to display a custom list view for a managed package object. But when I try to display a managed package list view for the same managed package object I get a message "The list view you requested was deleted, or you don't have permission to view it".
I am logged in as the system administrator. I can view the contents of the list view if I go that object's tab and select that list view.
The code for my sample component is below.
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes" access="global">
<lightning:listView aura:id="listViewAccounts"
objectApiName="namespace__objectname__c"
listName="All"
rows="5"
showActionBar="true"
enableInlineEdit="true"
showRowLevelActions="true"
/></aura:component>
The error message that I am seeing
Let me know if you can spot what I am doing wrong. Your response will be greatly appreciated.
Best Answer
The lightning:listViewdocumentation says that
listName
is "The developer name of the List View" so something to try to access a list view that is in the managed package would be to add the managed package's namespace prefix. Assuming that is "xyz":Also are you sure the list view "All" is in the managed package?