Questions tagged [lightningnavigation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
44 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 ...
1
vote
1answer
28 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
24 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
37 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
71 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
42 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
40 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
153 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
101 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
0answers
15 views

After Navigation details are not displayed in second component

First Component: ----------------- This component form is used to create Contact Second Component: ----------------- After creating a contact here ...
0
votes
1answer
34 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
17 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 :...
5
votes
2answers
209 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 ...
0
votes
0answers
17 views

Using navigateLightning.navigate in AURA is not forming the desired URL correctly in communities

I am trying to navigate to a custom community registration page once users clicks on Register button in login page which is built using AURA. Below is the sample code i am using for this. Component ...
1
vote
2answers
183 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
310 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
78 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
75 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 ...
7
votes
1answer
1k views

Is it possible to navigate to a Visualforce page from an LWC

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
25 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
375 views

LWC: lightning-navigation is not a function

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
53 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
253 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
19 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 ...
1
vote
1answer
372 views

On save navigate to record detail page

I'm a starter in lightning, I have created a component contains input fields of a custom object (session__c) and used that component as a quick action in the Account record page. On clicking of quick ...
0
votes
1answer
60 views

Is it possible to use lightning:navigation inside an aura:application?

What I need is a simple link to the org's home page. The documentation doesn't cover the case of aura:application but only cover the case of aura:component. If I copy-paste the example inside an aura:...
1
vote
1answer
224 views

Unable to navigate to community page using <lightning:navigation

I am using a <lightning:verticalNavigation> which calls a method to redirect to a Lightning Community page. Component <lightning:navigation aura:id="navService" /> <lightning:...