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
salesy_guysalesy_guy 

Problem overriding VF page with apex:detail

Hi,

 

I want to display following VF page when my users click on Accounts tab. I have set it up as below BUT problem is that it goes in infinite loop while loading upon Accounts tab click.

 

My VF page (with apex:detail) is as below:

<apex:page standardController="Account" sidebar="true" showHeader="true" title="Merchant: {!account.name}">
    <chatter:feedWithFollowers entityId="{!account.id}" />

    <apex:detail subject="{!Account.Id}" inlineEdit="true" />
</apex:page>

 

I have created a new Account Page Layout and added above page in it.

 

Question

Is there any way to use a page with apex:detail and set it as default for selected profiles (i.e. under Page Layout Assignment)?

 

Thanks in advance

ND

Vinita_SFDCVinita_SFDC

Hello,

 

Yes it is possible, follow the click path:

 

Setup|App setup|Customize|Accounts|Page Layouts|Edit Assignments|

 

Here you will find list of profiles and assigned page layouts. Assign you VF page to respective profiles.

Avidev9Avidev9
I dont think you can assign VF page to a Particular Layout or something. The thumb rule is if you override a detail page it will be overriden for all the profiles, but it will pull the fields based on the profile --> layout assignment.


In Short the apex:detail mimics the page layout that is assigned to current profile