You need to sign in to do that
Don't have an account?
LinThaw
Thanks in advance,
Regards,
LinThaw
Passing parameter when opening custom Tab
I try to pass parameter when opening custom Tab.
but when passing parameter (c__recordId) in state, name of custom Tab is going show Blank. Why is happen? Is there good way to pass parameter when opening custom Tab.
var navigation = component.find("navigation"); var pageReference = { type: 'standard__navItemPage', attributes: { apiName: 'customTab' }, state: { c__recordId: recordId } } component.set("v.pageReference", pageReference); navigation.navigate(pageReference);
Thanks in advance,
Regards,
LinThaw
It would be much easier if you navigate using navigateToUrl as below:
Hi Danish,
Thanks, I tried with url too. But same result.
If there is no parameter using navigateToURL or standard__navItemPage, Tab name is show well.
Any suggestion?
Regards,
LinThaw
Please try using the exact format - </lightning/n/SearchCompanyTab/?&c__recordIdId=<recordId>>
Thanks, I used this format but same result.
Regards,
LinThaw
I tried replicating your issue in my dev org.
The issue is because the SearchCompanyTab is not added to the Application you are currently working in.
Thanks, I also added it to Application and it worked. I think there is no other way to do that. Actually I don't want to show this tab as default in application. If there is other way please share me.
Regards,
LinThaw
How can I mark Default Off the tab in the Application?
I tried to hide or default off from Profile, but same result.
Thanks,
LinThaw
If so that every user must do this personalize settings. If there is no other way for this issue, I will consider to do that.
Thanks for every answer!
Regards,
LinThaw