You need to sign in to do that
Don't have an account?
setTabIcon in Service Console
Hi All,
My requirement is to set the icon on the tab, when visualforce page is loaded in service console.
I have tried to implement it using the following link:
http://www.salesforce.com/us/developer/docs/api_console/Content/sforce_api_console_settabicon.htm
sforce.console.setTabIcon('/img/icon/microphone16.png', null, checkResult);
I have inlcuded the following script :
<apex:includeScript value="/support/console/28.0/integration.js"/> and also changed the version of the page as well as controller to 28.0 .
Still this setTabIcon is not working for me.
Please help me.
Any help would be appreciated !!!
Thanks & Regards
Palak Agarwal
I've noticed flukyness here and there with this api. Mostly wrestling with cross domain security restrictions. The fact that VF is served from a different domain is a complete PITA.
I have been able to set tab titles but not in all circumstances.. it's difficult to give you a solutions without known the entire environment unfortunately.
Note. you can't really touch the left nav bar. You can't refresh VF tabs. Here is some tab icon code that worked for me. Don't ask me why.. It's been more trial and error for me as the core SFDC js libraries are not the easiest to interpret.
I list, what may appear to be, superfulous tags below as it seems if the wind blows on this stuff it breaks so I wanted to make sure I gave you all possible options.
Good luck and may the force be with you. :)
Thanks
You need to add this:
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css"/>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
sforce.console.setTabTitle(accountName, result.id);
sforce.console.setTabIcon("/img/icon/accounts16.png", result.id);
});
This seem working for me.
hope this works!! Cheers!!