+ 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