Accessing Data with Standard List Controllers in Salesforce

Sample Code:

<apex:page standardController="Account" recordSetVar="accounts" tabstyle="account" sidebar="false">
<apex:pageBlock >
<apex:pageBlockTable value="{!accounts}" var="a">
<apex:column value="{!a.Name}"/>
apex:column value="{!a.WebSite}"/>
apex:column value="{!a.AccountNumber}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>

Cheers!!!

No comments:

Post a Comment