+ Start a Discussion
Stijn TrochStijn Troch 

Override Accounts tab with VF page

Hi guys,

I am trying to override the custom Accounts tab with a VF page. (see code below)

But when I go the override properties for the accounts tab, I cannot select my VF page as it does not appear in the list.

I know the standard controller needs to be included, which it is, but it is still not working.

Could anybody provide help on this?

Thanks

<apex:page standardController="Account" showHeader="true"
             tabStyle="account" >
     <apex:tabPanel switchType="client"
                    selectedTab="tabdetails"
                    id="AccountTabPanel">
        <apex:tab label="Details" name="AccDetails"
                  id="tabdetails">
           <apex:detail relatedList="false" title="true"/>
        </apex:tab>
        <apex:tab label="Contacts" name="Contacts"
                  id="tabContact">
           <apex:relatedList subject="{!account}"
                             list="contacts" />
        </apex:tab>
        <apex:tab label="Opportunities" name="Opportunities"
                  id="tabOpp">
           <apex:relatedList subject="{!account}"
                             list="opportunities" />
        </apex:tab>
        <apex:tab label="Open Activities" name="OpenActivities"
                  id="tabOpenAct">
           <apex:relatedList subject="{!account}"
                             list="OpenActivities" />
        </apex:tab>
        <apex:tab label="Notes and Attachments"
                  name="NotesAndAttachments"
                 id="tabNoteAtt">
           <apex:relatedList subject="{!account}"
                             list="NotesAndAttachments" />
        </apex:tab>
     </apex:tabPanel>
  </apex:page>
Best Answer chosen by Stijn Troch
Pradeep Kumar L.GPradeep Kumar L.G
You should not use standard controller to override in this method. Try removing standard controller attribute.

Thanks
Pradeep

Mark this answer solved if this resolve your problem.

All Answers

Pradeep Kumar L.GPradeep Kumar L.G
VF page will appear in VF page Tab section.. I am not really sure how you are trying to override the custom account. Did you used custom object to create tab and later trying to change attributes.


Thanks
Pradeep

Mark this answer solved if this resolves your problem.
Stijn TrochStijn Troch
The tab is standard and I am just trying to change the lay-out by overriding it with a VF page.

Below is how I am trying to override the standard tab/link.
I have created a VF page, but cannot select it in this list.

User-added image
Stijn TrochStijn Troch
User-added image
Pradeep Kumar L.GPradeep Kumar L.G
You should not use standard controller to override in this method. Try removing standard controller attribute.

Thanks
Pradeep

Mark this answer solved if this resolve your problem.
This was selected as the best answer
Stijn TrochStijn Troch
Thanks, the override has now worked.
KKBandi1KKBandi1

When I override the Standard Account Tab with my custom VF Page , I could launch the page but the tab is not highlighted

Compared to other tabs which get highlighted upon selection , Overriden Account Standard Tab doesnt get highlighted ?

is it somekind of bug ?

<apex:page standardController="Account" tabStyle="Account" recordSetVar="accounts"  showHeader="false"  >
        <apex:pageBlock tabStyle="Account">
                <apex:pageBlockSection>       

        <apex:pageBlockTable value="{!accounts}"  var="acc">
            <apex:column value="{!acc.Name}"></apex:column>
        
        </apex:pageBlockTable>
                        </apex:pageBlockSection>

            </apex:pageBlock>

    
    
    
</apex:page>