• PipeCove
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

Hi,

 

I cannot get this function to work on my Visualforce page, nothing happens when I press the button that calls this method.

 

I have extracted the code just for this function:

<script type="text/javascript">
    function openGroupView() {  
        sforce.console.openPrimaryTab(null, '/apex/Group', true, 'Groups', null, 'GroupTab');
    }
        
    function focusGroupView() {
        sforce.console.focusPrimaryTabByName('GroupTab');
    }
</script>

 Here is the (extracted) code for the buttons:

 

<apex:form>
    <apex:pageBlockSection>
<apex:pageBlockSectionItem >
         <apex:commandButton id="groupButton" onclick="openGroupView();" value="Open GroupView"/>
        </apex:pageBlockSectionItem> <apex:pageBlockSectionItem > <apex:commandButton id="groupButtonFocus" onclick="focusGroupView();" value="Focus GroupView"/> </apex:pageBlockSectionItem> </apex:pageBlockSection> </apex:form>

The 'groupButton' works fine, but the 'groupButtonFocus' do not work.

Do anyone know if this is an issue within Salesforce or the Service Cloud Console? Just for the record, I haven't tried this on anything else than the Service Cloud Console, since that's what we are currently working on.

Hi,

 

I cannot get this function to work on my Visualforce page, nothing happens when I press the button that calls this method.

 

I have extracted the code just for this function:

<script type="text/javascript">
    function openGroupView() {  
        sforce.console.openPrimaryTab(null, '/apex/Group', true, 'Groups', null, 'GroupTab');
    }
        
    function focusGroupView() {
        sforce.console.focusPrimaryTabByName('GroupTab');
    }
</script>

 Here is the (extracted) code for the buttons:

 

<apex:form>
    <apex:pageBlockSection>
<apex:pageBlockSectionItem >
         <apex:commandButton id="groupButton" onclick="openGroupView();" value="Open GroupView"/>
        </apex:pageBlockSectionItem> <apex:pageBlockSectionItem > <apex:commandButton id="groupButtonFocus" onclick="focusGroupView();" value="Focus GroupView"/> </apex:pageBlockSectionItem> </apex:pageBlockSection> </apex:form>

The 'groupButton' works fine, but the 'groupButtonFocus' do not work.

Do anyone know if this is an issue within Salesforce or the Service Cloud Console? Just for the record, I haven't tried this on anything else than the Service Cloud Console, since that's what we are currently working on.