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
Kals_KalsKals_Kals 

Content from VF page is not being displayed

Hello All, 

I have a command button that calls VF page. Below is the code. The content is not being pulled. Any help is greatly appreciated.

 

function openSearchPage(){

            var primaryTabName = 'SearchTab';

            sforce.console.focusPrimaryTabByName(primaryTabName, focusSuccessSearch);

        }

        var focusSuccessSearch = function focusSuccessSearch(){

             sforce.console.openPrimaryTab(null, '/apex/VF_Search_Page', true, 'SearchTab'); 

        };

 

<apex:commandButton value="Search Account" 

                        style="font-size:13px;width:120px;margin-right:10px" 

                        onclick="openSearchPage();return false;"/>

 

When I add VF_Search_Page directly into my app, it works. But not from a command button. Any help would be greatly appreciated.

Thanks.