+ Start a Discussion
Piyush Nath 1Piyush Nath 1 

Service Console - How to call a JS method on clicking of object dropdown,or selecting different object

I am working on Service console. When we try to click on object list,i want to invoke a js function in a current page. But I can't figure out a way to do that.
scenario is, suppose i have opened a case,now when i click on object list (case) to open another case,i want to invoke a JS script. Like when we toggle between different primary tabs ,i am able to achieve usign onFocusedPrimaryTab. but not when selecting object list.
Any help will be appreciated.
Piyush Nath
Piyush Nath 1Piyush Nath 1
I was not able to do that, so have invoked method on closing of case and taking action.
sforce.console.addEventListener(sforce.console.ConsoleEvent.CLOSE_TAB, eventToInitialize);

var eventToInitialize = function (result) {
            //REQUIRED ACTION