You need to sign in to do that
Don't have an account?
divya gorantla
Can any one help me how to open a vfpage in existing case tab in salesforce console
I Tried with the following code .But the page is opening in new tab
<apex:page standardController="Case" extensions="GEHCIT_Case_Buttons">
<apex:pageMessages id="msgs"/>
<apex:includeScript value="/soap/ajax/26.0/connection.js"/>
<apex:includeScript value="/support/console/25.0/integration.js"/>
function testOpenSubtab(url2) {
//First find the ID of the primary tab to put the new subtab in
var PBID=sforce.console.getEnclosingPrimaryTabId();
sforce.console.focusSubtabByNameAndPrimaryTabName('00006487','Test Account');
var SBId=null;
var SBId=sforce.console.getFocusedSubtabId();
var id='{!id}';
var url=url2+id;
sforce.console.getEnclosingPrimaryTabId(function openSubtab(result){
var primaryTabId = result.id;
sforce.console.openSubtab(primaryTabId ,url ,true,'Email',SBId);
});
}
<apex:form>
<apex:commandButton onClick="testOpenSubtab('/apex/GE_HCIT_Send_Email?id=');return false" value="SendEmail" rendered="{!Case.SVMXC__Is_Entitlement_Performed__c=true}" />
</apex:form>
</apex:page>
<apex:page standardController="Case" extensions="GEHCIT_Case_Buttons">
<apex:pageMessages id="msgs"/>
<apex:includeScript value="/soap/ajax/26.0/connection.js"/>
<apex:includeScript value="/support/console/25.0/integration.js"/>
function testOpenSubtab(url2) {
//First find the ID of the primary tab to put the new subtab in
var PBID=sforce.console.getEnclosingPrimaryTabId();
sforce.console.focusSubtabByNameAndPrimaryTabName('00006487','Test Account');
var SBId=null;
var SBId=sforce.console.getFocusedSubtabId();
var id='{!id}';
var url=url2+id;
sforce.console.getEnclosingPrimaryTabId(function openSubtab(result){
var primaryTabId = result.id;
sforce.console.openSubtab(primaryTabId ,url ,true,'Email',SBId);
});
}
<apex:form>
<apex:commandButton onClick="testOpenSubtab('/apex/GE_HCIT_Send_Email?id=');return false" value="SendEmail" rendered="{!Case.SVMXC__Is_Entitlement_Performed__c=true}" />
</apex:form>
</apex:page>