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
mharikian1.3892229047844834E12mharikian1.3892229047844834E12 

Embedded Visualforce page not displaying data when overridden

Out standard Case page layout is being overridden with another visualforce page. In that visualforce page, we are using the apex:detail to display the fields on the page layout.

However, when I add an embedded Visualforce Page to the standard layout, no data is displayed. The embedded page works fine alone or in other standard pages which are not being overridden, but in this page, it doesn't show any data, even simple text.

Here is the Case page override:

<apex:page standardController="Case" action="{!if($Profile.Name != 'Community Partner User',null,urlFor('/apex/case'))}"> 
    <style type="text/css">
        .data2Col, .dataCell { max-width:600px; word-wrap:break-word; }
        .data2Col div, .dataCell { width:700px\9; }
    </style>
   
    <apex:includeScript value="{!$Resource.project_cloud__jquery_js}" />
    <script type="text/javascript">
        function esc$(id) {
            return jQuery('#' + id.replace(/(:|\.)/g,'\\\\$1'));
        }
    </script>
    <project_cloud:tree workableId="{!Case.Id}" projectId="{!Case.project_cloud__Project_Task__r.project_cloud__Project_Phase__r.project_cloud__Project__c}" />

    <apex:pageMessages />

    <apex:form >
        <apex:detail subject="{!Case.Id}" inlineEdit="true" relatedList="true" showChatter="true" />
    </apex:form>
</apex:page>


And here is my very simple Visualforce page:

<apex:page standardController="Case"
           applyHtmlTag="false"
           applyBodyTag="false"
           showHeader="false"
           sidebar="false"
           standardStylesheets="false">
                
<html>
                
    <head>
   
    </head>

    <body>
   
        <b>Hello!!! This is the embedded page.</b>
       
    </body>
   

</html>
</apex:page>


The text doesn't show. Any ideas on why the embedded page doesn't operate under these conditions would be appreciated.

Thanks.
Best Answer chosen by mharikian1.3892229047844834E12
mharikian1.3892229047844834E12mharikian1.3892229047844834E12
In my visualforce page, I had the <apex:detail> surrounded by <apex:form> tags.

Once I removed the <apex:form> tags, the embedded visualforce page now renders properly.

All Answers

mharikian1.3892229047844834E12mharikian1.3892229047844834E12
In my visualforce page, I had the <apex:detail> surrounded by <apex:form> tags.

Once I removed the <apex:form> tags, the embedded visualforce page now renders properly.
This was selected as the best answer
Daniel ShaheenDaniel Shaheen
Do you have you embded VF page as a sction inside the standard layout? or is part of the overrride page?
Ananth KrishnaAnanth Krishna
Hi,

My detail VF doesnt contain <apex:form> tag but still it is not showing the embedded VF pages. Any idea on what the probelm is?

Thanks,
Ananth Krishna.
Baron BortBaron Bort
@Ananth
I ran into a similar problem with my environment. I was working with the Visualforce workbook (Tutorial 6: Step 2: Embed a Page on a Standard Layout). After digging around my settings, I figured out what was wrong.

In case it helps, here is the Visualforce code I used:
<apex:page standardController="Account">
  <apex:pageBlock title="My Account Contacts">
      <apex:pageBlockTable value="{! account.contacts}" var="item">
          <apex:column value="{!item.name}"/>
          <apex:column value="{! item.phone}"/>
      </apex:pageBlockTable>
  </apex:pageBlock>
</apex:page>
To solve my problem, I had to go into Profile Settings. Go to Setup > Manage Users > Profiles. From here, click the Profile (not the edit button) that is attached to the user account you are currently logged in as (for me, I clicked System Administrator). Scroll down to the Page Layouts section and find the object(s) where your embedded Visualforce is giving you trouble. Make sure that you have the standard page layout assigned to that object. Mine was assigned to "Account Mobile Layout". If it's not correctly assigned, click View Assignment > Edit Assignment to change the Page Layout assignment to the standard object Page Layout.
Ananth KrishnaAnanth Krishna
Thank you Baron. I am able to resolve it now.
Isha BansalIsha Bansal
Facing same issue
Amit PorwalAmit Porwal
Best 10+ Love song status - most beautiful love status videos download for WhatsApp in 2020

Are you looking for the beautiful 45-second Whatsapp Status Video (https://www.mediawhatsappstatus.com/) for love?


love song status (https://www.mediawhatsappstatus.com/2020/06/love-song-status-Best-love-whatsapp-status.html) - Best love status in 2020 Here you will find a large collection of love song status & romantic love Status Video to Download. You can set those videos Love song status to your Whatsapp and Facebook story (https://www.mediawhatsappstatus.com/). That express your love feeling with your life partner proves you how much you love her/him.
This is the greatest emotion of life whilst we most effectively think about our life companion. It's also necessary to make your life companion understand that you are missing her or him
Amit PorwalAmit Porwal

Top 20 PunJabi sad status - Best sad Whatsapp status in Punjabi Whatsapp in 2020

 

 
Are you looking for the beautiful 30-second Punjabi sad status for Whatsapp?
 
Punjabi sad status - Best Punjabi sad Whatsapp status in 2020 Here you will find a large collection of Punjabi sad status & Punjabi sad song status Video to Download. You can set those videos Punjabi sad status to your Whatsapp & Facebook status (https://www.mediawhatsappstatus.com/). That express your love feeling with your life partner proves you how much you love her/him.
 
 
Punjabi sad Love song status is a beautiful and pretty feeling in our life partner. Now, how might you allow him/her to realize that you are missing them badly? The solution is, with the setting or updating your feeling with Punjabi sad status & Punjabi sad song status. This is a superb way to convey with your love to send sad song status videoto your lover
 
Amit PorwalAmit Porwal
Please visit our website and find yours best skin specilist doctor (http://skindoctorinkanpur.com/)  (http://skindoctorinkanpur.com/)


Why are you select him? Our team provide world-class facilities like
1. Same day appointment on our website (http://skindoctorinkanpur.com/).
2. Provide Expert Dermatologist Doctor Team.
3. Expert Diagnostics & Best Pharmaceutical advice.