You need to sign in to do that
Don't have an account?
mharikian1.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.
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.
Once I removed the <apex:form> tags, the embedded visualforce page now renders properly.
All Answers
Once I removed the <apex:form> tags, the embedded visualforce page now renders properly.
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.
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:
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.
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
Top 20 PunJabi sad status - Best sad Whatsapp status in Punjabi Whatsapp in 2020
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.