+ Start a Discussion
punnoosepunnoose 

How to customise an Account page

I have created a custom page for account . How do i get the detail of the account like the full description page as we click on the normal companies page in account Page

 

Regards

Punnoose

HariDineshHariDinesh

Hi,

 

You need use commandlink component like that.

Can you post your VFP code so that it will easy for someone if you need more info.

punnoosepunnoose

In this i get the name of the comapny from a.name .On click of name i want to go to the details of the company as in normal accounts page.

Regards

Punnoose

 

*********************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.Annual_Value__c}"/>
<apex:column value="{!a.Phone}"/>

</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>

 

*************************code******************************

Anu Raj.ax1269Anu Raj.ax1269

Hi 

   In the place of  "{!a.name}" use "{!a.id}"  it may work.

Thanks

Anu

punnoosepunnoose

i will tell my problem again ,i create a default accounts Page with th following code. i want this to be linked to on (click of Company name ) to a customized page created by Pagelayout.

How do you do this

Punnoose

asish1989asish1989

Hi 

  I think  this is your requirement.

      when clicked on Account Name from your custom page .. It is redirected to Standard account detail page and showing that account.

 

If It is your requirement... then use

commandLink and action and extension..

 

Otherwise let me know exact requirement

 

 

 

Thanks

asish 

HariDineshHariDinesh

Hi,

 

Replace your VFP code with the below 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>

 It will solves your Problem.

 

 

viswsanathviswsanath

hi 

1. go app setup

2.customize

3.tab name & lables

4.rename tabs & lable

5.select the edit for particular obj

6. change the name

7.save

punnoosepunnoose

Thats the answer that i want .
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


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