You need to sign in to do that
Don't have an account?
Prateek 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?
<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?
There is no issue in ode .Check account record in your org .
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?