+ Start a Discussion
RoyGiladRoyGilad 

Console Listner for tab focus change

Hi all, 
In Salesforce Console, I'm trying to capture when the user is changing his focus on things, and having a but of a hard time.

In the documentation there is a methud about how to identify sub-tab Focus changes however I could not find how to do that on Primary tabs.

Any idea? 

I tried to addEventListener  on sforce.console.onEnclosingTabRefresh and it didn't work..

Thanks

 
SandhyaSandhya (Salesforce Developers) 
Hi RoyGilad​,

Below is the link for onfocus primary tab.

https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_onfocusedprimarytab.htm
 

Hope this helps you!

Please mark it as solved if this helps you so that it will make for others as proper solution.

Thanks and Regards
Sandhya