function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<aura:component implements="flexipage:availableForAllPageTypes,force:hasRecordId" access="global" > <lightning:workspaceAPI aura:id="workspace" /> <lightning:button label="Open Tab with Subtab In aura" onclick="{! c.openTabWithSubtab }" /> </aura:component>
({ openTabWithSubtab : function(component, event, helper) { var workspaceAPI = component.find("workspace"); workspaceAPI.openTab({ recordId: component.get('v.recordId'), focus: true }).then(function(response) { alert('response====> ' + JSON.stringify(response)); workspaceAPI.openSubtab({ parentTabId: response, recordId:'0035g000004ASGqAAO',// dummy child record Id focus: true }); }) .catch(function(error) { console.log( 'Error is ' + error ); alert( 'Error is ' + error); }); } })
try following aura component. This Subtab component only work in console.
let me know if it helps you and marking it as best so that it can help to others in future.
Thank You