+ Start a Discussion

Default Accounts page

i have code to generate default Accounts tab
Now i have 2 problems
1 when i click on comapny it goes to cmpany detail page how do i select the page that is edited by pagelayout
How do i display these fields that exist as default in the accounts page(and its links)

Active Accounts
Accounts with last activity > 30 days
Account Owners
Contact Role Report
Account History Report
Partner Accounts
Import My Accounts & Contacts
Import My Organization's Accounts & Contacts
Mass Delete Accounts
Transfer Accounts
Merge Accounts
Sales Methodologies

<apex:page standardController="Account" recordSetVar="accounts" tabstyle="account" sidebar="false">
<apex:pageBlock >
<apex:pageBlockTable value="{!accounts}" var="a">
<apex:column >
<apex:facet name="header">
<apex:outputLabel value=" {!$ObjectType.Account.Fields.Name.Label}" />
<apex:outputLink value="/{!a.id}" target="_blank">{!a.Name}</apex:outputLink>
</apex:column >
<apex:column value="{!a.name}" />


You can use apex:detail to automatically use the correct record type's layout. I don't know of a way to do so if you want to edit the record, though...