You need to sign in to do that
Don't have an account?
Tobias Hagge
Call button/link in same window
Hey, I want to call a standard button from a Visualforce page in the same window of the Service Cloud Console, but it opens the link a new browser window. The standard button/link on the page works fine, just the calling from java does not work properly.
Any idea how to modify? I tried all target="_blank" self, etc.
<apex:pageBlockButtons location="top" id="pbbID9"> <apex:commandlink value="Email_Default_Notice_Ltd" action="{!URLFOR($Action.Account.View,Account.Id)}" onclick="openConga()" rerender="pbbID9" target="_blank"/> </apex:pageBlockButtons> <script Language="JavaScript"> function openConga() { window.open('{!URLFOR($Action.Account.Email_Default_Notice_Ltd,Account.Id)}', '','scrollbars=yes,menubar=no,height=600,width=800,resizable=yes, toolbar=no,location=no,status=yes'); } </script>
Any idea how to modify? I tried all target="_blank" self, etc.
Best Answer chosen by Tobias Hagge
Tobias Hagge
Changing it to the following works and doesn't even require java