Questions tagged [lightningnavigation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
44 views

NavigationMixin.Navigate to Record Detail Page is not working for Console Navigation App

I've created a custom form in LWC where I added 2 buttons & this LWC is on Record page on as a Quick Action button(LWC is called from Lightning Flow), Save and Cancel. Both are custom button and ...
0
votes
1answer
13 views

Prevent the double lightning header while navigation to Lightning Web Component

I have a Lightning web component which doesn't fit in the half-sized modal popup screen but I need to open it from the action on the record page. I have found an interesting idea about how this can be ...
0
votes
1answer
27 views

LWC: how can i load different lwc components on a page based on a selected option on the same page

Is there a way to load different lwc components on a lightning page based on the value of a setting in another component on the same page? Without reloading the whole page? I want to create a single ...
0
votes
2answers
57 views

LWC Navigation/Routing from one page to another

we are creating job portal on community using LWC. on community, client/vendor can create candidates, post jobs, view their candidates, jobs etc. We have created LWC for all those stuffs. Suppose i ...
0
votes
1answer
18 views

Dynamic Enable/Disable lightning page of a lightning app

There is a requirement, lightning app should have two lightning pages - Order and Pending Order, by default Pending Order will be disabled. And Order lightning page will be loaded. but Once user click ...
0
votes
1answer
16 views

Navigate to list view after button click In lighting

I want to navigate to list view on click of button in a case record. Even if the multiple cases tabs are open I would like to get focus to list view on button click in lighting. is this possible to do....
0
votes
0answers
29 views

Lightning Navigation Page

Hi I need to navigate to new LWC from my LWC, Lightning Navigation is working fine ........but whenever user clicks on the navigation item always it loads a new page. as per my modification if the ...
0
votes
0answers
21 views

lightning:navigation to Aura Component not working

I am using lightning:navigation to navigate from an Aura Component to another Aura Component which has lightning:isUrlAddressable interface Below is the snippet I used. event.preventDefault(); ...
0
votes
1answer
62 views

Navigate to Custom tab on standard object Opportunity

Hi I have created a custom tab on the opportunity flexipage named as "Oferta" as per the req i need to navigate to that tab instead of default summary page of the record as shown in the ...
0
votes
1answer
87 views

Getting “This page isn't available in Salesforce Lightning Experience or mobile app.” with navigation service

I'm using below code to redirect to a lightning component. component.find("navService").navigate({ "type": "standard__component", ...
-2
votes
1answer
44 views

How to do dynamic routing from one component to another component through anchor tags??Which we usually do in javascript [duplicate]

How to jump within the component sections on the same page on the click of anchor tags. This is usually known as jump link in normal HTML where we navigate through id's specified to each section and ...
0
votes
1answer
114 views

How to navigate to SObject custom tab?

var urlEvent = $A.get("e.force:navigateToSObject"); urlEvent.setParams({ "recordId": component.get("v.recordId"), ...
1
vote
1answer
473 views

Navigation from lwc inside a visual force page

I have overridden a standard salesforce button with Visualforce page. I am using a lwc component inside it using ltng:out. Then from lightning component I want to navigate to some other page but I am ...
0
votes
0answers
46 views

lightning-navigation stopped working post summer 20 release

We are using lightning navigation module in Lightning Web Component to navigate to a page. This was working fine before summer'20 Salesforce release but it stopped working post release. Reset(event)...
0
votes
1answer
1k views

Lightning Web Components Specialist NavigationMixin [closed]

I'm tearing my hair out trying to figure out why I'm not passing step 12 of the LWC Specialist superbadge. The error I'm receiving is: We can’t find the correct settings for navigateToRecord() in the ...
0
votes
1answer
24 views

Linking to pages within custom profileMenu component

Friends -- I've created a custom profileMenu.cmp where I'm iterating Menu Items and want to link to a specified page, but can't seem to figure out where I've gone wrong. Any help would be greatly ...
0
votes
0answers
26 views

on click button need to render the next page

I tried with the following code loginCred.cmp: <lightning:button variant="Brand" label="Register" onclick="{!c.registercred}"/> loginCredController js code: registercred : function(...
0
votes
1answer
160 views

Retrieve id for page reference for lightning navigation component

I am a beginner in learn lightning. I am trying to create a custom component to display open cases on the home page for a user. Using onlick to open the respective record. But I am unable to retrieve ...
1
vote
1answer
455 views

How to add a link to my lightning-tree-grid rows?

I'm using Lightning-tree-grid to display my data and I want to make the first column displayed as a link to the record page, So I tried to make it a button : type: 'button', typeAttributes: ...
1
vote
0answers
17 views

“Methods for Lightning Experience” working in the Service Console but not in the Sales Console

I have embedded a custom lightning component on the record page of "Case". When I use the "Methods of Navigation Items" and "Methods for Workspace Tabs and Subtabs" within the "Methods for Lightning ...
1
vote
0answers
400 views

LWC navigation to a tab is showing the 'Loading…' in place of tab name

When I click View All in the below custom LWC component, the below piece of code gets invoked. @track tabName = 'Payments'; navigateToViewAll() { this[NavigationMixin.Navigate]({ ...
1
vote
1answer
672 views

NavigationMixin.Navigate does not navigate

I am trying to use an example piece of code by Salesforce, but it's not working for me. It starts with a VF page, which unfortunately is necessary, because it is not possible to add an action to a ...
0
votes
0answers
33 views

Unable to redirect from Community to Salesforce Org

Error when trying to jump between Community to Salesforce org. I am using a custom layout template and am not using the navigation menu. I tried this but this redirected me to the portal { type:...
1
vote
2answers
208 views

Evaluation of approach to navigate between 3 LWC pages

Looking at building 3 screens and each has navigation between them using next, previous. Finish button to complete. I know that I could use Lighting Flows to navigate but I would not want to use it. I ...
2
votes
0answers
68 views

Navigation back to the Salesforce Mobile App after Navigating Away

I am attempting to integrate a Vue app into a business process that starts with Salesforce Mobile app. The Vue app needs to access the camera on the mobile device and, as a result, must be hosted ...
0
votes
1answer
238 views

lightning:navigation defaultFieldValues not working in lightning communiy

I have this custom aura component that redirects to New Opportunity standard record creation with some fields pre-populated from Account record. cmp: <aura:component implements="force:hasRecordId,...
0
votes
1answer
183 views

Switching Console Apps generates a Bad Message 414 reason: URI Too Long

I have a LWC where I am switching between Console Apps. Each time I switch, the URL for the Console increases to a point where after about 5 iterations it generates an error. Is there any way to ...
1
vote
2answers
445 views

lightning/navigation in communities lwc

How to navigate to a standard record page in Communities after a record is created. Following i tried it's not navigating though. this[NavigationMixin.Navigate]({ type: '...
1
vote
1answer
97 views

Please help me with the Navigation component

I am trying to call mobiles component from button click on this component , I am unable to call. please help me with this task. I am not getting any error, the button is getting highlighted but ...
3
votes
1answer
299 views

How to navigate to the profile page in Communities using lightning:navigation?

I tried constructing PageReference following documentation - pageReference Types: handleGoToProfile: function(cmp, event, helper) { event.preventDefault(); // const pageReference = cmp.get(...
0
votes
1answer
183 views

use of lightning navigate:navigate from one component to another in lightning community

var eUrl= $A.get("e.force:navigateToURL"); eUrl.setParams({ "url": url }); eUrl.fire(); I am trying to replace above in my code as per documentation it is not ...
0
votes
1answer
289 views

NavigationMixin to standard__objectPage passing recordType value

I want to navigate to a new record creation passing recordType but I don't see nothing in doc that allows me to do that. I understand you can't predifined values for now but, is recordTypeId allowed ...
3
votes
1answer
90 views

How to avoid hardcoding of page name in lightning:navigation?

I need to generate a page URL and use it a link to my page. Users can click on that link and go to the page. controller getPageUrl: function (component) { const navService = component.find(...
1
vote
0answers
145 views

In Salesforce1 app unable to get recordId from currentPageReference wire adapter passed from previous page

I am working on Salesforce LWC in Salesforce1 mobile app. Lwc core functionality @wire(CurrentPageReference) pageRef; is throwing following error on console and i am unable to get recordId from ...
1
vote
0answers
96 views

How to pass parameters from one lwc page to next lwc page on Salesforce1 mobile app?

I am trying to get lightning navigation service state parameters on next page but it is not working that way on Salesforce1 mobile app. Although it is working fine on chrome browser as web app. @wire(...
2
votes
1answer
931 views

Why @wire(CurrentPageReference) pageRef; is causing following JS error

Line: "@wire(CurrentPageReference) pageRef;" in lwc is causing following js error in console log. What is the fix? Error: [LWC error]: Invalid event type "WireContextEvent" dispatched in element <...
0
votes
1answer
980 views

Open child component from parent on the same page

I've made two components: Is the main component. We chose value and based on that value, must be opened 2nd component.(parent) 2nd component (child) I would like do the following (step by step): ...
0
votes
1answer
39 views

Query String is not added while navigating in lightning

Hi All, I'm trying to navigating to place order page from order details page but the query string is not displayed in the URL section.I'm getting the URL like below: https://sf.force.com/lightning/...
0
votes
0answers
36 views

How to set subtab label of a component opened from another component using only PageReference and not workspace API

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 :...
6
votes
2answers
854 views

LWC Navigation (NavigationMixin) Bug. CurrentPageReference Becomes undefined and won't navigate?

I'm running into a bizarre bug that I can't track down. When using NavigationMixin.Navigate it works just fine MOST of the time. But occasionally, it just stops navigating. Digging into it as much ...
1
vote
2answers
1k views

NavigationMixin.Navigate - Navigate and Set Case Values

Context: Using a lightning web component, I am trying to navigate from the Account page to the Case (New) page/dialog and set the new Case subject dynamically upon arrival. I have managed to make the ...
0
votes
1answer
3k views

Lightning Web Component: Navigation on Button-Click

I am attempting to navigate when a button-click occurs in lightning. Nothing happens when I click the button. Any thoughts on how to make this work? Code sample included: import { LightningElement,...
0
votes
1answer
479 views

LWC in Visualforce Lightning Out context using Lightning Navitagion

The lightning/navigation service doesn't support lightning out. Does anyone have a technique to detect that a LWC is running within Lightning out Visualforce and provide the correct navigation. The ...
1
vote
0answers
375 views

NavigationMixin : pages persist when going back

So I have this setup where I have a searchfield that, upon button click, navigates to a results screen where there is a lightning datatable. Now, the problem is that if I go back from the results to ...
12
votes
3answers
6k views

Is it possible to navigate to a Visualforce page from an LWC with parameters and community compatible

The LWC framework includes the NavigationMixin.Navigate functionality that can be used to obtain URLs or perform navigation to generated URLs. This supports a number of different page types, as ...
1
vote
0answers
27 views

Visualforce/Lightning Button Override Navigation

I'm still stuck in the dark ages in terms of Lightning development, so hoping someone can help me here: I'd like to overrride the edit page of a Quote Line Item and take the user to a Visualforce ...
1
vote
1answer
1k views

LWC: lightning-navigation is not a function [duplicate]

I am trying to use the navigation to custom sObject record edit page by passing recordid as mentioned in the document. However, it says "it is not a function". Any thoughts? import { NavigationMixin ...
1
vote
0answers
75 views

Is there a way to prevent navigation from standard new record page after save

I have a Lightning web component that uses Navigation Mixin to show create new record page for a custom object. I am using the following function for this. this[NavigationMixin.Navigate]({ ...
0
votes
1answer
418 views

Lightning Web Component and NavigationMixin [duplicate]

In my LWC I'd like to open a standard "new record" dialog with predefined values. I know I can use: this[NavigationMixin.Navigate]({ type: 'standard__objectPage', attributes: { ...
1
vote
0answers
20 views

Rewrite history using navigation service

I've got a wizard that utilises isUrlAddressable and navigation service to switch between pages. At some page 3 there's a "point of no return" where Lead gets converted and returning to first page ...