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
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.
 
Thanks.
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
         }