Questions tagged [navigation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
23 views

In Community, navigate from one aura component to another

I have a community page where I need to navigate from one aura component to another (on the same page, no full page redraw). I start in "FirstComponent.cmp" and click a button which should result in ...
0
votes
0answers
77 views

Issue with LWC Flow Navigation

I have an LWC embedded in a flow that has a custom footer. Whenever to click on the custom buttons to navigate the next screen, I get the following error: Uncaught Action failed: flowruntime:...
0
votes
0answers
13 views

Custom Flow Navigation - Retaining previously entered data

I am trying to implement a custom navigation for my flow. I have three screens in the flow and each screen calls a separate Lightning component. Now I am using the navigateFlow("NEXT") in each ...
0
votes
1answer
58 views

Can we edit Mobile App Salesforce Navigation through code / callouts to Metadata?

I have read this Trailhead lesson: https://trailhead.salesforce.com/en/content/learn/modules/salesforce1_mobile_app/salesforce1_mobile_app_navigation (Customize the Mobile Only Navigation Menu). Now ...
1
vote
0answers
41 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 ...
2
votes
1answer
139 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 <...
1
vote
0answers
59 views

LWCs - Navigation Menu Base?

I am in the process of building a custom navigation menu as a Lightning Web Component for my community. I know that in Aura Components one could use forceCommunity:navigationMenuBase, which provides ...
0
votes
1answer
89 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

Navigation inside a Utility Bar item

I'm implementing a component that has a button and when it is pressed, navigation to another component should happen. This component is placed in a utility bar item and navigation to another ...
0
votes
1answer
48 views

how to highlight active tab in custom navigation bar in lightning component

We have custom navigation bar in lighting community. Onclick of each tab we are navigating to different URLs. How to highlight active tab in custom navigation bar in lightning. Suppose if user clicks ...
5
votes
2answers
197 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
32 views

isUrlAddressible navigation works from component 1 to component 2, but doesn't work from component 2 to component 3

So, I had a problem with navigating from Parent component to Child component, but it was solved. But now I have even stranger problem. So, I did navigation from Parent component to the Child one, but ...
0
votes
1answer
31 views

How to make navigation to Lightning component using isUrlAddressible?

So, I had a problem with navigating from Parent component to Child component, but it was solved. But now I have even more strange problem. So, I did navigation from Parent component to the Child one, ...
1
vote
1answer
192 views

LWC navigation issue in communities

I am trying to redirect on the a href click to a custom visualforce page in lightning. <a href=# onclick={navigateto###} target="_blank"></a> navigateto###() { console.log('...
1
vote
0answers
71 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 ...
0
votes
1answer
117 views

LWC navigation to custom tab encryped the parameters?

I have a LWC Navigation component that is going to a custom tab that inturn loads a VF page, with params. This all works as expected and the url structure for the user is correct. However in the VF ...
0
votes
1answer
55 views

How we fire 2 or more events continuously in lightning component?

I'm facing a below problem when redirect to view the detail page then wanna display Edit popup. Please help me resolve this. In my component js. var retParams = '0010k000008IsVXXX' // Id of ...
1
vote
1answer
300 views

URL Type for Lighting:Datatable opens in new tab in console navigation

I'd like to have my datatable links open in a new sub tab when my users are using console navigation, but somehow they always open in a new tab. Here's the column definition for the link field: { ...
0
votes
0answers
22 views

Public Site user menu customized Salesforce Classic

I'm making a update public site for certain registers in my ORG. So I need the user see a customize menu and a diferent message on the "userNavButton", there's a way to customized this in a public ...
1
vote
0answers
23 views

lightning :navigation or :workspaceapi? What's my best option?

I see the Lightning docs demonstrate using <lightning:navigation aura:id="navService"/> with workspaceAPI here: https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/...
0
votes
1answer
247 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
69 views

Opening Visualforce page from Lightning Component, not showing header with back button on mobile app

In our org, we have a lightning component that opens a Visualforce page. On mobile, we want the mobile header that contains a back button to be visible, or for a header with a "Close" button to be ...
0
votes
1answer
55 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
1k views

LWC - Handling Save Event on Record Edit Page

I have a <lightning:datatable> in which I have a rowAction which triggers and shows an edit record page (in a modal), as follows: HTML <lightning-datatable columns={columns} ...
0
votes
0answers
21 views

Navigation works in a strange way in community

I have a list of custom objects made from object pages in community. When I click on one of the object it the lists, it navigates me to list of accounts instead of details of the custom object. Any ...
1
vote
1answer
200 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:...
0
votes
0answers
44 views

Redirect to non-default tab on recordpage from Lightning Component

I'm using a lightning component to update a record. For the lightning whole application to work well, it has to reload completely. After updating the record, I use lightning-navigation to create the ...
0
votes
0answers
62 views

How to Pass record id from community page to another?

I am using navigation mixin for navigating to a community page from other community page- this[NavigationMixin.Navigate]({ type: 'standard__namedPage', attributes: { ...
1
vote
1answer
708 views

Cancel and go back to Account after force:createRecord not working

handleCreateRecord : function(component, event, helper) { let currentUrl = decodeURIComponent(window.location.search.substring(1)); let createRecordEvent = $A.get("e.force:...
0
votes
0answers
89 views

How to navigate to a lightning app home page from a custom lightning component?

I have a requirement where I want to create a component which will have a list of apps which the users most frequently use. This component will be available as a utility item. The users will have the ...
1
vote
1answer
98 views

Component call another lightning component

I have created a lightning component onclick button call a js function. Js function is there. callAuthComponent : function(component, event, helper){ console.log('call......'); var evt = $A....
0
votes
0answers
77 views

State is not getting set

I am navigating to another page while clicking on a button, and passing the record Id in the state, however in the url it is not showing, same is working properly in another org. getting this in ...
3
votes
0answers
114 views

Passing a parameter to visualforce in lightning experience

We have a Visualforce page in Lightning Experience and we are using an apex:outputLink to pass a parameter to the same page, so that we can edit an item on the page. VF Page 'MySetup' Snippet: <...
0
votes
2answers
283 views

Problem with Lightning Navigation?

I am trying to lightning navigation, I am using the code of official docs (https://developer.salesforce.com/docs/component-library/bundle/lightning:navigation/documentation) .cmp <aura:component ...
0
votes
4answers
1k views

lightning:navigation not passing the States in URL

I used to naviagate from one component to another component. 'TestComp' is the destination component to which i want to naviagate. Its working fine in dev orgs but not in all the sand boxes. In some ...
0
votes
0answers
141 views

Navigate to record details of record created during a flow

I'm trying to navigate to record details of record that was created during the flow. I tried adding simple lightning component with lightning:navigation on a last screen but instead of redirection i ...
1
vote
1answer
1k views

Getting This page isn't available in Salesforce Lightning Experience or mobile app on navigating to component

I have button on the lightning component, on it's click action it is naviagating to another lightning component. Resultant URL is https://cmp-adecco--devv27.lightning.force.com/lightning/cmp/...
0
votes
1answer
42 views

Navigate user from inside lightning component to new record page on mobile

I want to be able to navigate a user from within a lightning component to the create new record page on the salesforce one app. I cant find any means of how to do this.
3
votes
1answer
197 views

Hide Specific Navigation Menu Items using Page Variation ( Audience ) in Salesforce Communtiy

We decided to go with one Salesforce Community for 3 different Partner Types. All of the Partners should be able to see different tabs, and it's working correctly with tabs. In the one case, we have ...
1
vote
1answer
707 views

Lightning Web Componets: navigate to the 'new' object page passing in specific record type Id?

I am using LWCs to display lightning cards in a list. The list shows information about Programs. Each Program card has a button, and this button needs to take the user to the 'new object' screen of ...
1
vote
1answer
2k views

LWC Navigation: “this[f.NavigationMixin.Navigate] is not a function”

When attempting to use the Lightning navigation service in my component's base class (.js), I receive the following hard error when functionally testing in the UI: this[f.NavigationMixin.Navigate]...
0
votes
1answer
132 views

Prevent navigation when click to one item of the navigation bar

I create a custom lightning component and have some unsaved data. I'd like to show a warning and optionally prevent the navigation when clicking to a navigation bar (such as Home, Account,.. ). I ...
0
votes
0answers
34 views

How to add Custom object tab to navigation menu in salesforce app webiste?

Also how would i know which app currently i am using in salesforce if there are multiple apps.
0
votes
0answers
128 views

lightning:navigation not working on second launch

I have a custom lightning component that navigates to another lightning component via lightning:navigation. If I try this once it works fine but if, without refreshing the page, I try launching this ...
5
votes
1answer
710 views

Spring19 release:Uncaught (in promise) TypeError

keep getting the following js error in my lightning component after the Salesforce Spring19 release: Can any one help please contextService.js:2 Uncaught (in promise) TypeError: Cannot read property '...
3
votes
1answer
481 views

Open New Tab in Lightning Out?

Scenario: I want to create a List Button which displays a Lightning Component. The only way to implement this step is to use a Visualforce Page which uses a Standard Set Controller, then use ...
3
votes
2answers
929 views

Lightning Experience - Edit override with nooverride option

We need a conditional override in Lightning Experience which may return a custom component/VF page or will return the standard edit behaviour. We've been investigating various options for returning ...
0
votes
1answer
341 views

Type in lightning navigation

In the following code what is passed to type key? var pageRef = { type: 'custom__recordPage', // What is type here? attributes: { actionName: 'view', ...
3
votes
0answers
107 views

Visualforce navigation tab not showing as highlighted in Lightning Experience

The managed app being created has two VisualForce pages with tabs that work fine. One tab is a "list page" of custom objects, which can be clicked on for more detail. The click navigates to one three ...
0
votes
1answer
476 views

Lightning Vertical Navigation: CSS for list item to be align to the right

I have a vertical navigation that is populated from a list of records, for each item I am trying to add a span with some extra information (in this case a badge), but I want to be pull to the right (...