You need to sign in to do that
Don't have an account?
subramanyam R
unable to accessing the name and phone number from account object...
<apex:page standardController="account" recordSetVar="accounts">
<apex:form >
<apex:sectionHeader title="account"/>
<apex:pageBlock title="account names">
<apex:pageBlockTable value="{!account}" var="a">
<apex:column value="{!a.name}"/>
<apex:column value="{!a.phone}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
<apex:form >
<apex:sectionHeader title="account"/>
<apex:pageBlock title="account names">
<apex:pageBlockTable value="{!account}" var="a">
<apex:column value="{!a.name}"/>
<apex:column value="{!a.phone}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
All Answers
try below code <apex:pageBlockTable value="{!account}" var="a"> should be correct as <apex:pageBlockTable value="{!accounts}" var="a">