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
pooja h 1pooja h 1 

Visualforce code is saved without error, But I'm unable to view the contents in the preview.

Hi,
I have tried to design vf page to fetch list of accounts . Unable to pull account information .
 <apex:page standardController="Account" recordSetVar="Accounts">
    <apex:pageBlock title="Account list">
    <!-- Account list -->
    <apex:pageblocktable value="{!Accounts}" var="At" >
       <apex:column value="{!At.Name}"/>
        <apex:column value="{!At.Phone}"/>
        <apex:column value="{!At.Type}"/>
        <apex:column value="{!At.Fax}"/>
        </apex:pageblocktable>
    </apex:pageblock>
</apex:page>

OUTPUT:
User-added image
Thanks
Raj VakatiRaj Vakati
Your code is correct ... But recordSetVar will show the data from the from the ListView which you access currently. Please change the list view on account object to All Accounts or my accounts and try to reload your visualforce page 



User-added image