I am unable to open multiple tabs with a tabLabel
but CAN open multiple tabs without a tabLabel
. I can't find any documentation on why this would be happening or any further explanations on the (optional)tabLabel:String
section of the openPrimaryTab()
function. Any insight would be appreciated.
I have tried binding in a value, hard typing in a value, putting in a datetime and as far as I can tell, if there is any value in the tabLabel, then multiple tabs will not pop.
sforce.console.openPrimaryTab(null, '/' + id, true,
'{!title}', openSuccess, 'Case On Case');
When I remove the tabLabel, I am able to get multiple tabs to pop.
sforce.console.openPrimaryTab(null, '/' + id, true, openSuccess, 'Case On Case');
Any ideas?
Best Answer
In this case, you need to specify
undefined
rather than defined asnull
in the first argument ofSo, it will be as follows:
In the below picture you can see that clicking each record, it is opening in separate Primary tab with title.
Updating answer based on comments
Now, if you do not specify the Id then it should be
undefined
as there is difference betweennull
andundefined