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
RamakarryRamakarry 

recordSetVar in StandardListController displaying empty records

Hi Folks,
My recordsetVar is not displaying records even the object is having records in my Org.
Please find the peiece of code below and corresponding UI

<apex:page standardController="Account" recordSetVar="records" >
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!records}" var="r">
    <apex:column headerValue="Name" value="{!r.Name}"/>
    <apex:column headerValue="Phone" value="{!r.Phone}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form> </apex:page>

User-added image

Regards
Rama
 
Manohar kumarManohar kumar
Hi Rama, 
Same code is working for me. Do you have permission to read account records. Is it happening with other objects also ? 

Thanks,
​Manohar