Questions tagged [lightningnavigation]
The lightningnavigation tag has no usage guidance.
73
questions
1
vote
1
answer
43
views
TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions
I wrote such functionality to see pdf ContentDocument preview of needeed file:
viewPdf() {
this[NavigationMixin.Navigate]({
type: 'standard__namedPage',
attributes: {
...
0
votes
1
answer
17
views
navigatetourl not redirecting to salesforce url
I read a couple of documents about navigating to the page within salesforce by using "navigateToUrl".
I used this to navigate to "google.com" it is working as expected but when I'm ...
0
votes
0
answers
34
views
How to use lightning:navigation navigate(pageReference,true) in Salesforce Mobile App?
I have a lightning quick action that is very simple component and redirects to another custom component using lightning:navigation.
navigateLightning.navigate(pageReference,true)
The replace argument ...
0
votes
0
answers
14
views
Lightning Override Component is displaying the standard action buttons when viewing the component in the Salesforce mobile app
I have a simple component with a modal from SLDS. We are using a lightning:recordEditForm and override the "New" and "Edit". We are also using lightning navigation services when ...
1
vote
1
answer
126
views
CurrentPageReference setter not getting called when I mock in jest unit test for lwc
referencing this answer:Mocking CurrentPageReference wire in Jest unit tests - LWC
This is how I mock CurrentPageReference in the test file , the navigate functionality seem to work but I can't call ...
0
votes
1
answer
224
views
How can I create dynamic url for Experience Cloud?
So I am trying to do some practice projects on Experience Cloud, I have two questions:
How should I write proper navigation within NavigationMixin.Navigate, so type should be standard_webPage but in ...
0
votes
0
answers
31
views
VF remoting issues console app salesforce cpq navigation to QLE?
I am trying to link a user directly to the configuration of a certain bundle in Salesforce CPQ based on criteria. Long story short this is working as expected outside of a console app, however, when I ...
0
votes
0
answers
75
views
How to destroy Parent Aura and Child LWC during record navigation?
I have overridden Standard New button on lead object with Aura Component and this Aura calls LWC which contains record edit form to create new lead record but here I am making a server call to create ...
1
vote
1
answer
301
views
navService used with lightning:navigation does not work as expected : no redirection is made and no error is shown
Summary
I work on a SFDX project with one package, and within my aura component,
I'm currently having problems with the lightning:navigation element. I followed the docs from Aura Component - ...
0
votes
0
answers
32
views
Is there a way to navigate to the Details tab in the SF1 app from LWC?
Navigate to the details tab in SF1. I am able to navigate to the record page using NavigationMixin. What I am really looking is to land on the details tab in SF1 app?
0
votes
0
answers
21
views
lightning-navigation not working in LWC inside Visualforce Page [duplicate]
We have a link button that has a Visualforce Page that calls an embedded Lightning Web Component
I'm trying to generate an URL via lightning-navigation but it's always giving me the following value:
...
0
votes
0
answers
22
views
How can i realize lightning:navigation to account detail page? Aura Component
help me please,
i have a child aura component, and i need to realize redirect on detail page when i clicked on Account Name.
<aura:component implements="flexipage:availableForAllPageTypes"...
1
vote
1
answer
777
views
Redirect to a Report from an LWC with dynamic parameters not working
I am trying to redirect to a Report from an LWC with dynamic parameters. I tried to do it manually as well nothing works. Any suggestions would be much appreciated.
<div>
<a href="#&...
0
votes
0
answers
19
views
Navigate to all overdue task on mobile
I developed a lightning component that displays on the salesforce mobile home page the number of overdue tasks. I provided a button to navigate the user to the standard "All overdue" list ...
0
votes
1
answer
177
views
Navigating to record detail page in a tab in sales console on click of a button in lightning button menu
I have a lightning card placed on a component and it has a lightning button menu , the first button is view where on clicking it, it needs to open a record detail page in a seperate tab, The record id ...
0
votes
1
answer
48
views
How can I add a handler to track and set the active tab?
Due to the fact that I need to get two badges, I decided to modify the standard lightning-vertical-navigation (in which there can only be one). But now I don't understand how I can switch the active ...
0
votes
1
answer
25
views
Global navigation layout
Desktop - The global navigation component that is available on the sdfc is a horizontal tab.
Can I change the global navigation layout to a global vertical navigation(sticky)during development??
...
1
vote
1
answer
2k
views
Standard Create-record modal in LWC without page redirect?
Is it possible to call the standard create record modal without invoking a page redirect. After reading this thread I learned that you can call the create record event using lightning navigation mixin....
1
vote
1
answer
33
views
What difference does the __c make in currentPageReference in code?
What is the difference between keyword and c__keyword in the code below? What is happening below?
this.searchKeyword = this.currentPageReference.state.keyword
? this.currentPageReference.state.*...
0
votes
1
answer
713
views
Navigating from an Aura component to a Visualforce page gives navigation error 'browser blocks cross-domain cookies'
When navigating from an aura component to a VF Page I get the following error, and I can't figure out why. Note, in the retURL, the component is lightning:urlAddressable
Error: We can't display this ...
0
votes
1
answer
465
views
Pass the URL Dynamically Stored in custom Field to LWC Navigation(standard__webpage)
Scenario: I have a Custom Field (dataType: URL) on a Custom Object. I need to Pass this Value to the Navigation(standard__webpage) LWC Service Dynamically. In the code given below "Per__c....
0
votes
1
answer
33
views
URL Parameters not being captured in state property onload
I'm trying to pass certain information on click of button from one community page to another through state property of Navigation Mixin. I'm able to successfully navigate to the next page ,however ...
0
votes
1
answer
95
views
Lightning web component navigation [closed]
I need to view record page in Console subtab when I click yhe link in lwc.
0
votes
1
answer
108
views
URL to custom object home page
There are two object case and escalation_on_hold__c in case object lightning component i have created a form with case fields and when the button click it will show popup message and in that i have to ...
0
votes
1
answer
4k
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
1
answer
35
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
1
answer
342
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
3
answers
2k
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
1
answer
147
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
1
answer
778
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
1
answer
414
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
1
answer
3k
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
1
answer
99
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
1
answer
543
views
How to navigate to SObject custom tab?
var urlEvent = $A.get("e.force:navigateToSObject");
urlEvent.setParams({
"recordId": component.get("v.recordId"),
...
2
votes
1
answer
2k
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
0
answers
55
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
1
answer
33
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
1
answer
465
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
1
answer
1k
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
0
answers
26
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
0
answers
1k
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
1
answer
2k
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
0
answers
63
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
2
answers
575
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
0
answers
160
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
1
answer
528
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
1
answer
299
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
2
answers
1k
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
1
answer
209
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
1
answer
825
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(...