function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
punnoosepunnoose 

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
and
How do i display these fields that exist as default in the accounts page(and its links)

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


**************Code*********************
<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:facet>
<apex:outputLink value="/{!a.id}" target="_blank">{!a.Name}</apex:outputLink>
</apex:column >
<apex:column value="{!a.name}" />
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
**************Code*********************

sfdcfoxsfdcfox

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