Saturday, 26 July 2014

Set Console Tab title using "Salesforce Console Integration Toolkit"


I have the requirement to have a visualforce page in the console view. But when we open a visualforce page from a button or something in the console view then console set the title for console tab as "ExternalPage".
But we want to change that title.

We can change the title of Console tab when we open "visualforce pages or third party applications" by using "Salesforce Console Integration Toolkit"

To use this in the visualforce page we should include the following script file.

<apex:includeScript value="/support/console/20.0/integration.js"/>

<script src=""></script>
<apex:includeScript value="/support/console/20.0/integration.js"/>
 $(document).ready(function() {

      sforce.console.setTabTitle('My Title for Console Tab');

when we open this page then title "My Title for Console Tab" for Console Tab where visualforce page opened in console view.

Not only these we can customize more things in Console by using this Tool Kit.

For more information "Salesforce Console Integration Toolkit".

No comments:

Post a Comment

Getting Reference FieldsI(Lookup or Master detail) through dynamic apex

Hi , We  had a scenario If  we get a parameter "id" in the  url  then we should  be  able to find out    object reference is ...