4

Hi I have created a tab name "Test Client" on the Account Object, beside the previously present Details tab. So there are two tabs on the flexipage of the Account Object == "Details" and new made by me "Test Client".

As per the req i need my user on the click of the button should get navigated to the particular record on the Account page but instead of Detail page it should be directed on the "Test Client".

below is the code i tried, it is helping me to navigate to the detail tab page ,,,but not on the test client page kindly some one help me out

navigaToTestclienTabOnAccount(evt) {
        
        this[NavigationMixin.Navigate]({
            type: 'standard__navItemPage',
            attributes: {
                recordId: this.acccountId,
                objectApiName: 'Account',
                actionName: 'view'
            }
        });
    }

Kindly someone help me out...this one is for LWC. i am not using Aura

1 Answer 1

3

You can't navigate to a particular tab on a record page in Lightning. This is not yet supported in Lightning.

However, if your requirement is that user should always navigate to a particular tab whenever Account(or other objects) is opened from whatever source(list view, global search, link, custom Aura/LWC component), you can make the tab as the 'default' one by editing the record page.

If its not the requirement then I am afraid you will not be able to achieve it.

3
  • 1
    This is soo bad :(
    – Dumnik
    Commented Oct 12, 2020 at 8:28
  • Is there a solution for this now? Commented Mar 18, 2021 at 11:54
  • No solution yet Commented Apr 20, 2021 at 14:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .