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
Dany Rouss 9Dany Rouss 9 

Service Cloud Console srcUp method

Hello,

I have a list button that executes the below javascript function to open a new subTab in console :

if(sforce.console.isInConsole()){
    srcUp(url);
} else {
   window.location.href = url;
}


The problem is when in console when i click the button it redirects me to salesforce classic page for like 2 seconds and then go back to console application.

Note : My user is a service cloud user.

Thank you.

 

priyanka.mv26priyanka.mv26
Hi Dany,

Please try this and let me know if it works for you or not, I had the same issue but the below solution fixed it. 

if(sforce.console.isInConsole()){
    srcUp(url+'?isdtp=vw');
} else {
   window.location.href = url;
}