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
Prateek Aneja 2Prateek Aneja 2 

Problem in code

I wrote the following code to display the list of accounts but it's not printing anything:

<apex:page standardController="Account" recordSetVar="accounts" tabstyle="account" sidebar="false">
    <apex:pageBlock >
        <apex:pageBlockTable value="{!accounts}" var="acc">
            <apex:column value="{!acc.name}"/>
        </apex:pageBlockTable>
    </apex:pageBlock>
</apex:page>


Can anyone suggest me what is the issue?
ManojjenaManojjena
Hi Prateek ,

There is no issue in ode .Check account record in your org .
Ravi Dutt SharmaRavi Dutt Sharma
Hey Prateek,

The code seems to be working fine? With which user are you trying to access the page? Does that user has access to Account object?