0

When i open a subtab from my main component, the label is loading... I only need to use pageReference type and as per the requirement, i cannot use worksapce API. Need help. My code:

ViewCallHistory : function(component,event,helper)
{
var pageReference = {

                                "type": "standard__component",
                                "attributes": {
                                    "componentName": "c__CallOutcomeHistory",
                                    "actionName": "CallOutcomeHistory"
                                },    
                                "state": {
                                    "c__projTargetId" : component.get('v.ProjectTargetId'),
                                }
                            }
                            navService.navigate(pageReference);
}

the actionName is not a parameter for standard__component! any suggestions would be helpful!

  • Hi Ankur, standard__component doesn't support the actionName. But you can use the state to pass another param and handle it in the component. – Miguel Bayón Sep 16 '19 at 8:27
  • hi Miguel, yes, i can pass another param, but how can i set it as a label for the subtab that is opened.. .currently it says ...loading... – Ankur --- Sep 16 '19 at 8:38
  • There's a method called setTabTitle that could work. Take a look at the developer guide. – Miguel Bayón Sep 16 '19 at 8:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.