I want to create function for reopening(refreshing) component or whole opened tab by clicking on the button.
I couldnt find any working example. I am using aura lightning component.
cmp:
<lightning:button label="Storno" onclick="{!c.storno}" aura:id="new-trans-button"/>
controller:
storno : function (cmp, event, helper) {
var subtabId = 'scc-st-0';
sforce.console.refreshSubtabById(subtabId, true, refreshSuccess);
I used something like this, but i dont know how to get subtabId and i am getting error
sforce is not defined