You need to sign in to do that
Don't have an account?
'caller is undefined' Error in sforce.console.openPrimaryTab
When I use sforce.console.openPrimaryTab in the custom button(list button), I got a error: 'caller is undefined'.
My javascript code:
---------------------------------------------------------------------------------------------
{!REQUIRESCRIPT("/support/console/25.0/integration.js")}
sforce.console.openPrimaryTab(
null,
'www.google.com',
true,
'My tab name'
);
---------------------------------------------------------------------------------------------
But when I use it in the visual force page, the error does not appear:
---------------------------------------------------------------------------------------------
<apex:includeScript value="/support/console/25.0/integration.js"/>
<script type="text/javascript">
function toExistContact(url,tabName){
sforce.console.openPrimaryTab(
null,
url,
true,
tabName
);
}
</script>
---------------------------------------------------------------------------------------------
Anyone tell my why?.....