You need to sign in to do that
Don't have an account?
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.