You need to sign in to do that
Don't have an account?
Nick_Joe
Navigate Subtab to Subtab in Lightning
Hi Everyone, Aura Lightning navigate from one component to another component.Here is the code:-
var workspaceAPI = component.find("workspace");
workspaceAPI.openSubtab({
url: '/lightning/r/Case/ + '/'+ recordId +'/'+ /view',
focus: true
}).then(function(subtabId){
workspaceAPI.setTabLabel({
tabId: subtabId,
});
}).catch(function(error) {
console.log(error);
});
Please suggest if anyone had faced this issue in the past or have any idea.
thanks in advance.
var workspaceAPI = component.find("workspace");
workspaceAPI.openSubtab({
url: '/lightning/r/Case/ + '/'+ recordId +'/'+ /view',
focus: true
}).then(function(subtabId){
workspaceAPI.setTabLabel({
tabId: subtabId,
});
}).catch(function(error) {
console.log(error);
});
Please suggest if anyone had faced this issue in the past or have any idea.
thanks in advance.
try this following dummy example and navigate one component to another component in your org.
In your second component, on which you want to navigate must be implement below line. let me know that it's working or not. and if you have any doubt then ask again.
Thank you