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
Sylvie SerpletSylvie Serplet 

VF page not diplaying (undefined) as a custom console component (subtab - right sidebar)

I am trying to diplay a VF page as a custom console component (subtab - right sidebar) and get the message 'undefined'. When I add a related list in the same section it diplays fine. When I add my VF page it in the detail page layout it works but not in the sidebar. What do I miss?

User-added image

Here is my codes:
VisualforcePage: CaseList
<apex:page standardController="Case" extensions="CaseListController">
<apex:form > 
<apex:pageBlock >
<apex:pageBlockTable value="{!CA}" var="C" columnsWidth="10%,50%,20%,20%" > 
                <apex:column headerValue="Case Number" >
                <apex:commandLink value="{!C.CaseNumber}" action="/{!C.Id}" target="_blank" />
                <apex:column headerValue="Subjet" value="{!C.Subject}" />
                <apex:column headerValue="Status" value="{!C.Status}" />
                <apex:column headerValue="Created Date" value="{!C.CreatedDate}" />       
ApexClass: CaseListController
public with sharing class CaseListController {

    public List<Case> CA { get; private set; }

    public CaseListController(ApexPages.StandardController controller) {
       if (Test.isRunningTest() == false) {
      controller.addFields(new List<String>{ 'ContactId' });
        Case currentCase = (Case)controller.getRecord();
        CA = [Select Id, CaseNumber, CreatedDate, Status, Subject, ContactId FROM Case Where ContactId = :currentCase.ContactId and Id != :currentCase.Id Order by CaseNumber DESC Limit 5];

Thank you in advance for your help.
pranab khatuapranab khatua
You need to edit the page layout form console.Please follow the steps :-
User-added image

1) click on "Page Layout" above the screenshot.
User-added image
2)  click on "custom console component"
User-added image
3) Select "Visualforce Page" and choose vf page and setup related to data like height, width etc.

Try the proccess if any problem let me know.
Sylvie SerpletSylvie Serplet
This is what I have done and I got an error message in the right sidebar saying 'undefined'
Ido Greenbaum 10Ido Greenbaum 10
Hi Sylvie, 
Any chacne the VisualForce Security Settings are preventing it from showing? Can you confirm that at your VisualForce Page - 'CaseList' -> Security -> verify the proper Profiles are enabled? 

Eric VitucciEric Vitucci
I know this is old but did you ever figure this out? I am having the same problem.
Sylvie SerpletSylvie Serplet
Hi Eric,
It works now, but I do not remember what I did, it was a year ago!