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
Anil Kumar 630Anil Kumar 630 

wats wrong with the following code , its not displaying the accounts, its showing only the buttons ...but not the accounts..

<apex:page standardController="Account" recordSetVar="Acc">

            <apex:form >
            
                <apex:pageBlock >
                
                    <apex:pageBlockTable value="{!Acc}" var="con">
                        <apex:column value="{!Con.Name}"/>
                        <apex:column value="{!Con.Phone}"/>
                        <apex:column value="{!Con.Fax}"/>
                        
                    
                    
                    </apex:pageBlockTable>
                
                <apex:pageBlockButtons >
                    <apex:commandButton value="Next" action="{!Next}"/>
                     <apex:commandButton value="Previous" action="{!Previous}"/>
                
                </apex:pageBlockButtons>
                </apex:pageBlock>
            
            
            </apex:form>


                    
    
</apex:page>

 
Steven NsubugaSteven Nsubuga
You probably have no Accounts in your instance
Anil Kumar 630Anil Kumar 630
Steven Nsubuga
i have accounts but still its not displaying...
Steven NsubugaSteven Nsubuga
I tested it, there is definitely nothing wrong with the code. The issue is with your org.
Raj VakatiRaj Vakati
recordSetVar will get data from the most recently accessed list views .. Change your list view to All accounts and then try to view the page ..  

Go to Account tab -- > List views --> Change List view to All Accounts and then try