You need to sign in to do that
Don't have an account?
Sylvie Serplet
VF page not diplaying (undefined) as a custom console component (subtab - right sidebar)
Hi,
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?
Here is my codes:
VisualforcePage: CaseList
Thank you in advance for your help.
Sylvie
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?
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> <apex:column headerValue="Subjet" value="{!C.Subject}" /> <apex:column headerValue="Status" value="{!C.Status}" /> <apex:column headerValue="Created Date" value="{!C.CreatedDate}" /> </apex:pageBlockTable> </apex:pageBlock> </apex:form> </apex:page>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.
Sylvie
1) click on "Page Layout" above the screenshot.
2) click on "custom console component"
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.
This is what I have done and I got an error message in the right sidebar saying 'undefined'
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?
Ido.
It works now, but I do not remember what I did, it was a year ago!
Sorry.