Questions tagged [navigationmixin.navigate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
60 views

NavigationMixin is embedding js code in url - Error

On a custom tab I have a LWC component that wants to use NavigationMixin to reference another custom tab. In my Controller I have defined that call like this: import { NavigationMixin } from '...
0
votes
1answer
34 views

Is there a alternative for WorkspaceApi in LWC?

Background & The Problem We have a custom grid lwc which i am using to display data from two different objects (EmailMessage & CustomObject). Now, I want to navigate the user to a new tab ...
1
vote
2answers
136 views

Create New related record in LWC

I have a custom object AP_Customer_Address__c which has a lookup relationship to Contact. I have an LWC on the contact record page which allows the creation of a new address for that contact. I use ...
4
votes
1answer
113 views

LWC: NavigationMixin.Navigate not able to refresh/reload the whole page

I have a Community page called page_A and a LWC is on this page. The HTML file has these two parts where {flag} is a tracked variable in js file. <template if:true={flag}> ... A part ... ...
0
votes
0answers
63 views

Avoid navigation to newly created record using NavigationMix

I'm working on a requirement where I want a button which will open a modal to create a new Task record in LWC. For this, I tried using NavigationMixin. But onclick of Save in the modal, it redirects ...
0
votes
1answer
114 views

Navigation in lightning out for LWC

I have a LWC which navigates to records using NavigationMixin. When I use the same LWC in VisualForce page using lightning out, the navigation does not work. I there any way to make it work? I did ...
0
votes
0answers
36 views

Lightning out is not dispaying data of LWC

I have a LWC that displays records using wrapper class and allows navigation to those records. It works fine in Lightning. When I try to use the same component in VF page using lightning out, it does ...
2
votes
1answer
572 views

How to navigate to records using Datatable in Lightning Web Components

I am new to Lightning Web Components. I have a wrapper class that returns Accounts, Leads, and Contacts. I display those using lightning data table in my LWC. I want to navigate to a particular record ...
1
vote
0answers
51 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
47 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
187 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
0answers
33 views

@wire(CurrentPageReference) pageRef is not working in Salesforce mobile app

I am using @wire(CurrentPageReference) to get data passed from previous page. Here is my code: In first page navigating to second page like this: this[NavigationMixin.Navigate]({ type: "...
5
votes
2answers
244 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
1answer
176 views

New tab in browser (Lightning Service Console App)

We have an application that pulls URLs from configuration and creates buttons for such user defined URLs. Because we are in a console navigation environment, every time these URLs are internal, ...
0
votes
0answers
21 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 ...
2
votes
1answer
881 views

NavigationMixin.Navigate not navigating to home on community - LWC

I am building a lightning community using LWC, where on successful login trying to navigate to standard home page of the community, but i see no URL redirection is happening.Below is the logic i have ...