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!

3
  • 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. Sep 16, 2019 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, 2019 at 8:38
  • There's a method called setTabTitle that could work. Take a look at the developer guide. Sep 16, 2019 at 8:44

0

You must log in to answer this question.