4
votes
window.postMessage does not work in lightning console app. Any workaround?
This is an expected behaviour since postMessage with targetOrigin '*' sends the message with no target preference and your tabs are in the same lightning container.
The window.postMessage() method ...
3
votes
Accepted
OpenPrimaryTab fails with salesforce.com URL
www.salesforce.com has the header X-Frame-Options: SAMEORIGIN. An origin is defined as the specific subdomain that exactly matches the origin. So, for example, in your sandbox, your origin is cs14....
3
votes
Understanding opensubtab functionality along with javascript
The sforce.console.getEnclosingTabId method is asynchronous and the method you pass in as a parameter is termed a callback function. This behavior is clearly indicated in the documentation:
This ...
2
votes
Problem Hiding Sidebar using JavaScript
I found the following reference in Launching a Visual Force Page in the Service Cloud Console (my emphasis):
IMPORTANT: Be careful if your uses a visualforce inside another vf, for example using . ...
2
votes
Accepted
isInConsole() Showing False in embedded VF Page
If you are opening the standard record from listview in console then page will be in console.
It works perfectly based on your code.
Issue is: Your development mode is opened.
Close the ...
2
votes
Can Lightning WorkspaceAPI be used to Open tabs in Visualforce Pages?
One approach you can take is to create a lightning component, embed the VF Page in an iframe inside the lightning component.
From the VF page, you can use parent.postMessage to send messages to the ...
2
votes
Accepted
openPrimaryTab function does not work
Did you change your signature of openPrimaryTab to take parameters and verify that {!URLFOR($Action.Account.View, Case.Account.Id )} evaluates to a legal URL?
The following code works successfully ...
1
vote
How to open console tab from within a visualforce on a page layout?
You're right about the console integration methods not working because they're being called from inside an iFrame. Is there any reason the button needs to be in a visualforce page embedded in the ...
1
vote
how to write lightning Component for JavaScript Button which contains sforce.Console.openSubtab() functionality?
There is a Lightning Console JavaScript API for Lightning Experience in Pilot right now, I think it will be the way to go once it's GA.
1
vote
Accepted
Custom Javascript Button Issue (Not throwing error)
If you use javascript button, throw the error using alert like this:
alert ('There is no Activity record associated with this Fax. Please contact your System Administrator');
It should stay on the ...
1
vote
Accepted
Close Tab automatically in Service Cloud Console
I used a workaround suggested in SFDC Developer Forum by Ron Wild.
1
vote
Accepted
sforce.console.isInConsole() not working (returns false even in Console)
To recognize whether the page is in console or classic view (non-console) change the formula field like this:
Formula field to open visualforce in console
HYPERLINK("javascript:if(typeof(srcUp)=='...
1
vote
Accepted
Salesforce - Console Integration Toolkit : openSubTab: Invalid ID: scc-st-0
What your screenshot shows is indeed a primary tab 'Mario Rossi'. But what you don't see is that there is actually a 'Details' subtab contained within that primary tab. Were you to open additional ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
consoleintegrationtoolkit × 43service-cloud-console × 18
visualforce × 16
console × 12
javascript × 11
custom-console-components × 8
service-console × 4
lightning-aura-components × 3
lightning × 3
apex × 2
omnichannel × 2
aura × 1
custom-button × 1
salesforce-id × 1
liveagent × 1
event × 1
developer-console × 1
javascript-remoting × 1
custom × 1
servicecloud × 1
session × 1
cti × 1
publisher-action × 1
cross-domain × 1
lightning-console × 1