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
veda Hebbarveda Hebbar 

Bottom sidebar not visible after overriding new button

Hi All,

I have created a visualforce page to display in bottom side bar of contact in console App. I have overridden 'New' and 'Edit' buttons of Contact(FYI, I have a visualforce page for create and edit functionality of contact). When I click edit button(even though it is overriden by vf page) bottom side bar is visible but, when I click 'New' button 'Bottom side bar' is not displaying in console app.

Please let me know how I can display bottom side bar?

Thanks,
Vedashri

 
Best Answer chosen by veda Hebbar
veda Hebbarveda Hebbar
Finally resolved this issue using below code:
 
$j = jQuery.noConflict();

 $j( document ).ready(function() {
    if(sforce.console.isInConsole() && '{!$CurrentPage.parameters.stopRedirectingInConsole}' != 'true')
        togetFocusedPrimaryTabId();
});

function togetFocusedPrimaryTabId() 
{
    sforce.console.getFocusedPrimaryTabId(getPrimaryTabIdForRedirection);
}
var getPrimaryTabIdForRedirection = function showTabId(result) {
    //redirect to standard create page
    sforce.console.openPrimaryTab( result.id, '/003/e?stopRedirectingInConsole=true', true);
};

 

All Answers

veda Hebbarveda Hebbar
Finally resolved this issue using below code:
 
$j = jQuery.noConflict();

 $j( document ).ready(function() {
    if(sforce.console.isInConsole() && '{!$CurrentPage.parameters.stopRedirectingInConsole}' != 'true')
        togetFocusedPrimaryTabId();
});

function togetFocusedPrimaryTabId() 
{
    sforce.console.getFocusedPrimaryTabId(getPrimaryTabIdForRedirection);
}
var getPrimaryTabIdForRedirection = function showTabId(result) {
    //redirect to standard create page
    sforce.console.openPrimaryTab( result.id, '/003/e?stopRedirectingInConsole=true', true);
};

 
This was selected as the best answer
Suresh Kumar 87Suresh Kumar 87
It would be great if you can provide more inputs on how to resolve this issue. I am facing the same problem, not able to view the Sidebar in Service Console.