You need to sign in to do that
Don't have an account?
Etienne DK
Navigate to a Lightning App Builder page
Hi, I've spent a few hours trying to make this work so hopefully it's possible and it's my Google fu that is off.
I'm trying to navigate to a Lightning App Builder record page from a custom lightning component, the custom component errors saying it cannot find the component c:My_App_Builder_Page (I've tried a few variations but no luck)
As background the custom component is used as a record view override, it does a callout and then tries to load the app builder page to show the record and related lists.
I would skip using the app builder page and use a custom component but I can't see how to programatically create a record page with related lists
I'm trying to navigate to a Lightning App Builder record page from a custom lightning component, the custom component errors saying it cannot find the component c:My_App_Builder_Page (I've tried a few variations but no luck)
// helper ({ navigateToAppBuilderPage : function(component, event, helper) { var recordId = component.get("v.recordId") var evt = $A.get("e.force:navigateToComponent"); evt.setParams({ componentDef: "c:My_App_Builder_Page", //developer name in app builder recordId : recordId //componentAttributes :{ } }); evt.fire(); } })
As background the custom component is used as a record view override, it does a callout and then tries to load the app builder page to show the record and related lists.
I would skip using the app builder page and use a custom component but I can't see how to programatically create a record page with related lists
to cross-site scripting attacks. Instead, implement the lightning:isUrlAddressable interface on the target component and
navigate to the component using the lightning:navigation component with the standard__component page type.
This process generates a route in the format /cmp/{componentName}?myAttr=attrValue. This workflow opens tabs and
subtabs to custom components without exposing security concerns
Please refer this link
http://bobbuzzard.blogspot.com/2018/05/lightning-component-navigation-in.html
I'm not sure if it is possible to open a flexipage via code.