Skip to main content
added 193 characters in body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99

my requirement is a record have feed and detail page.......right.. when i do an update in the feed nothing but publisher action, i need to refresh the detail page related to that


I have a vf page in the publisher action. in that vf page i have one update button.my requirement is that when i click on the update button, the account detail page should refresh. which is not happening. i have tried in following ways.but of no use.

function testRefreshPrimaryTabById() {
            //Get the value for 'scc-pt-0' from the openPrimaryTab method
            var primaryTabId = 'scc-pt-0';
            sforce.console.getFocusedPrimaryTabId(showTabId);
            //sforce.console.getEnclosingTabId(testRefreshPrimaryTabById);
            //window.top.location = "/";
            //window.location.href = 'url';
            sforce.console.top.location.href = 'url';
            
        }
       var showTabId = function showTabId(result) 
    {  
        var tabId = result.id;
        sforce.console.refreshPrimaryTabById(tabId , true, refreshSuccess);    
    };

    var refreshSuccess = function refreshSuccess(result) 
    {
        //Report whether refreshing the primary tab was successful
        if (result.success == true) 
        {
            alert('Primary tab refreshed successfully');
        } 
        else 
        {
            alert('Primary did not refresh');
        }
    };
  </script>

whole console is refreshing which should not be. only one tab in which i am doing the update should refresh....so that detail page also refreshes.

any suggestions???

I have a vf page in the publisher action. in that vf page i have one update button.my requirement is that when i click on the update button, the account detail page should refresh. which is not happening. i have tried in following ways.but of no use.

function testRefreshPrimaryTabById() {
            //Get the value for 'scc-pt-0' from the openPrimaryTab method
            var primaryTabId = 'scc-pt-0';
            sforce.console.getFocusedPrimaryTabId(showTabId);
            //sforce.console.getEnclosingTabId(testRefreshPrimaryTabById);
            //window.top.location = "/";
            //window.location.href = 'url';
            sforce.console.top.location.href = 'url';
            
        }
       var showTabId = function showTabId(result) 
    {  
        var tabId = result.id;
        sforce.console.refreshPrimaryTabById(tabId , true, refreshSuccess);    
    };

    var refreshSuccess = function refreshSuccess(result) 
    {
        //Report whether refreshing the primary tab was successful
        if (result.success == true) 
        {
            alert('Primary tab refreshed successfully');
        } 
        else 
        {
            alert('Primary did not refresh');
        }
    };
  </script>

whole console is refreshing which should not be. only one tab in which i am doing the update should refresh....so that detail page also refreshes.

any suggestions???

my requirement is a record have feed and detail page.......right.. when i do an update in the feed nothing but publisher action, i need to refresh the detail page related to that


I have a vf page in the publisher action. in that vf page i have one update button.my requirement is that when i click on the update button, the account detail page should refresh. which is not happening. i have tried in following ways.but of no use.

function testRefreshPrimaryTabById() {
            //Get the value for 'scc-pt-0' from the openPrimaryTab method
            var primaryTabId = 'scc-pt-0';
            sforce.console.getFocusedPrimaryTabId(showTabId);
            //sforce.console.getEnclosingTabId(testRefreshPrimaryTabById);
            //window.top.location = "/";
            //window.location.href = 'url';
            sforce.console.top.location.href = 'url';
            
        }
       var showTabId = function showTabId(result) 
    {  
        var tabId = result.id;
        sforce.console.refreshPrimaryTabById(tabId , true, refreshSuccess);    
    };

    var refreshSuccess = function refreshSuccess(result) 
    {
        //Report whether refreshing the primary tab was successful
        if (result.success == true) 
        {
            alert('Primary tab refreshed successfully');
        } 
        else 
        {
            alert('Primary did not refresh');
        }
    };
  </script>

whole console is refreshing which should not be. only one tab in which i am doing the update should refresh....so that detail page also refreshes.

any suggestions???

added 116 characters in body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99

I have a vf page in the publisher action. in that vf page i have one update button.my requirement is that when i click on the update button, the account detail page should refresh. which is not happening. i have tried in following ways.but of no use.

function testRefreshPrimaryTabById() { //Get the value for 'scc-pt-0' from the openPrimaryTab method var primaryTabId = 'scc-pt-0'; sforce.console.getFocusedPrimaryTabId(showTabId); //sforce.console.getEnclosingTabId(testRefreshPrimaryTabById); //window.top.location = "/"; //window.location.href = 'url'; sforce.console.top.location.href = 'url';

function testRefreshPrimaryTabById() {
            //Get the value for 'scc-pt-0' from the openPrimaryTab method
            var primaryTabId = 'scc-pt-0';
            sforce.console.getFocusedPrimaryTabId(showTabId);
            //sforce.console.getEnclosingTabId(testRefreshPrimaryTabById);
            //window.top.location = "/";
            //window.location.href = 'url';
            sforce.console.top.location.href = 'url';
            
        }
       var showTabId = function showTabId(result) 
    {  
        var tabId = result.id;
        sforce.console.refreshPrimaryTabById(tabId , true, refreshSuccess);    
    };

    var refreshSuccess = function refreshSuccess(result) 
    {
        //Report whether refreshing the primary tab was successful
        if (result.success == true) 
        {
            alert('Primary tab refreshed successfully');
        } 
        else 
        {
            alert('Primary did not refresh');
        }
    };
  </script>
  

whole console is refreshing which should not be. only one tab in which i am doing the update should refresh....so that detail page also refreshes.

any suggestions???

I have a vf page in the publisher action. in that vf page i have one update button.my requirement is that when i click on the update button, the account detail page should refresh. which is not happening. i have tried in following ways.but of no use.

function testRefreshPrimaryTabById() { //Get the value for 'scc-pt-0' from the openPrimaryTab method var primaryTabId = 'scc-pt-0'; sforce.console.getFocusedPrimaryTabId(showTabId); //sforce.console.getEnclosingTabId(testRefreshPrimaryTabById); //window.top.location = "/"; //window.location.href = 'url'; sforce.console.top.location.href = 'url';

    }
   var showTabId = function showTabId(result) 
{  
    var tabId = result.id;
    sforce.console.refreshPrimaryTabById(tabId , true, refreshSuccess);    
};

var refreshSuccess = function refreshSuccess(result) 
{
    //Report whether refreshing the primary tab was successful
    if (result.success == true) 
    {
        alert('Primary tab refreshed successfully');
    } 
    else 
    {
        alert('Primary did not refresh');
    }
};
 

whole console is refreshing which should not be. only one tab in which i am doing the update should refresh....so that detail page also refreshes.

any suggestions???

I have a vf page in the publisher action. in that vf page i have one update button.my requirement is that when i click on the update button, the account detail page should refresh. which is not happening. i have tried in following ways.but of no use.

function testRefreshPrimaryTabById() {
            //Get the value for 'scc-pt-0' from the openPrimaryTab method
            var primaryTabId = 'scc-pt-0';
            sforce.console.getFocusedPrimaryTabId(showTabId);
            //sforce.console.getEnclosingTabId(testRefreshPrimaryTabById);
            //window.top.location = "/";
            //window.location.href = 'url';
            sforce.console.top.location.href = 'url';
            
        }
       var showTabId = function showTabId(result) 
    {  
        var tabId = result.id;
        sforce.console.refreshPrimaryTabById(tabId , true, refreshSuccess);    
    };

    var refreshSuccess = function refreshSuccess(result) 
    {
        //Report whether refreshing the primary tab was successful
        if (result.success == true) 
        {
            alert('Primary tab refreshed successfully');
        } 
        else 
        {
            alert('Primary did not refresh');
        }
    };
  </script>
 

whole console is refreshing which should not be. only one tab in which i am doing the update should refresh....so that detail page also refreshes.

any suggestions???

Source Link
Dileep
  • 33
  • 2
  • 7

How to refresh the account detail page from publisher action vf page

I have a vf page in the publisher action. in that vf page i have one update button.my requirement is that when i click on the update button, the account detail page should refresh. which is not happening. i have tried in following ways.but of no use.

function testRefreshPrimaryTabById() { //Get the value for 'scc-pt-0' from the openPrimaryTab method var primaryTabId = 'scc-pt-0'; sforce.console.getFocusedPrimaryTabId(showTabId); //sforce.console.getEnclosingTabId(testRefreshPrimaryTabById); //window.top.location = "/"; //window.location.href = 'url'; sforce.console.top.location.href = 'url';

    }
   var showTabId = function showTabId(result) 
{  
    var tabId = result.id;
    sforce.console.refreshPrimaryTabById(tabId , true, refreshSuccess);    
};

var refreshSuccess = function refreshSuccess(result) 
{
    //Report whether refreshing the primary tab was successful
    if (result.success == true) 
    {
        alert('Primary tab refreshed successfully');
    } 
    else 
    {
        alert('Primary did not refresh');
    }
};

whole console is refreshing which should not be. only one tab in which i am doing the update should refresh....so that detail page also refreshes.

any suggestions???