+ 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.

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}"/>

User-added image
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