Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [lightning-events]

Lightning Events are a way for markup component to communicate its changing state

90 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10 votes
0 answers
380 views

Make custom, in-memory "Lightning Data Service" work

Lightning Data Service is great. Multiple components are magically linked to database records. When records change in the db component show that change. Imagine this to work without saving change to ...
Robert Sösemann's user avatar
6 votes
0 answers
659 views

Neither forceCommunity:routeChange or aura:locationChange cannot detect the URL change with history.replaceState

We have a use case where a lightning component built in LWC, should trigger a URL change. We're handling that with the history.replaceState method(note that we encountered the same problem with ...
Endrit Sino's user avatar
5 votes
0 answers
149 views

How can I manage lightning components' navigation-related caching

This is related to this question: Navigation in Desktop Lightning Experience not Destroying Components My components are listening to the force:refreshView event, but since the components are cached ...
Valyrion's user avatar
  • 1,144
5 votes
5 answers
12k views

Cannot read property 'config' of undefined

I get this error just randomly: Uncaught Error in $A.getCallback() [Cannot read property 'config' of undefined] Callback failed: apex://taskKanbanController/ACTION$getKanbanWrap Here's the relevant ...
Sairisheek Muttukuru's user avatar
5 votes
0 answers
768 views

Lightning component error handleOnBlur event

I have an iteration on a component with an ui:inputNumber inside, which has an onchange event that calls a server side action. If after i change the value, i click on an input after the onchange is ...
user37586's user avatar
  • 660
3 votes
0 answers
3k views

Why my function in connectedCallback is called twice and not following the order

I am still in journey to understand on how LWC works . I read some doc and try to do poc , so i am really apologize if my question is not proper to be asked. Feel free to devote it =) Note : ...
unidha's user avatar
  • 2,552
3 votes
0 answers
204 views

Is there any way to know when the standard cancel button is clicked in lightning after calling e.force:editRecord

I want to do some modification when standard cancel button is clicked in lightning..Is there any event or any other way to get that?
Titu's user avatar
  • 31
3 votes
0 answers
858 views

Lightning "change" event doesn't fire in aura:Iteration

I am passing an Object to my component and iterate through it's child records. To handle changes I added the Lightning change handler. (I made data an array, so I can set a default for demo purposes, ...
itsmebasti's user avatar
  • 6,457
3 votes
1 answer
544 views

How to notify highlight bar about record changes?

On my lightning record page i have a standard "Highlight Panel" component that displays some data in addition to some more components below (tab component with record detail component, etc.) When I ...
Christoph's user avatar
  • 1,022
3 votes
3 answers
3k views

Can we reload screen after Save from force:editRecord event?

I've a Custom Lightning Component displaying a List custom object records. On each data row, I've custom button to Edit the record. On Edit click, I've fired following event: var editRecordEvent = $...
VarunC's user avatar
  • 5,950
2 votes
0 answers
188 views

How to send data from Aura Components to Google Tag Manager?

I'm trying to implement GTM in Experience builder. But I want to send the send some page details through datalayer to GTM. I couldn't find right documents & articles for that. Can Anyon help me ...
Gokul Sriram R's user avatar
2 votes
0 answers
35 views

Can not Remove class in Lightning Component

**Lightning Component1 JS** clearAllClickedButtons : function (component, event, helper) { component.set("v.uncheckButton",''); var clearAllFilters = component.find('uncheckButtons');...
Dave's user avatar
  • 480
2 votes
1 answer
1k views

Capturing a Flexipage Lightning Tab Change

TL;DR Is there a way to capture / fire a lightning event to know a tab has changed when using the standard flexipage / lightning tabs component? We're trying to design a reactive page that has ...
will-bowditch's user avatar
2 votes
1 answer
446 views

How we can identify from which component the event has been fired?

I have a scenario that I have an event called AdviceEvent registered by two different components ParentCmp and FriendCmp. And Third component called PersonCmp is handling both event. The Question is ...
Abhishek Sharma's user avatar
2 votes
1 answer
216 views

Component event not being caught

It looks like the event is firing but the handler is not catching it. How do I go about getting this component event to be handled? EVENT: <aura:event type="COMPONENT" ></aura:event> ...
Rory's user avatar
  • 429
2 votes
0 answers
300 views

Unable to fire force:runActionComponent application event

Currently, LWC doesn't support QuickActionApi, but I really need it. Also, I am investigating option to wrap my LWC component by Aura component container, which will use quickActionApi and interact ...
BlackCat's user avatar
  • 802
2 votes
1 answer
476 views

How to use force:editRecord from visual force page

force:editRecord event works fine in my lightning app, but the same does not work in the visual force page. I am aware that force:editRecord is handled by one app container but I am looking for work ...
Chandra Teja's user avatar
2 votes
0 answers
272 views

Input too long when firing a custom event

What I'm trying to do is, onblur of the amount field, the total amount event would fire and would update the parent component's total amount attribute. Im doing this so that the running total in the ...
SamuelDev's user avatar
  • 790
2 votes
0 answers
441 views

dependent picklist not getting populated while creating a record using force:createRecord Lightning

I am trying to open a record create page on click of a button on the Account detail page in lightning. I have created a lightning component and a controller as follows. The dependent picklist isn't ...
Shweta Mahapatra's user avatar
2 votes
0 answers
706 views

aura:valueChange event gives a proxy object with Map attributes

I'm working on my first non-trivial aura component for a lightning experience app, and I was trying to organize sub-component data using map attributes of essentially this pattern: <aura:component&...
Cappielung's user avatar
2 votes
0 answers
579 views

Tabbing through a Lightning:tabset using tab button on keyboard?

I have a set of 6-8 tabs which show up through the lightning tabset component, and I would like to be able to go through each of these tabs using the specific 'Tab' key, instead of left and right. ...
Stas Christiansen's user avatar
2 votes
1 answer
2k views

How to handle an event in a child component that is fired from a dynamically created grandchild component?

I have a component that includes a child component. The child component has a button that fires showCustomModal on an overlayLibrary and the content is a dynamically created component. Component ...
Carl Otto Gjelsvik's user avatar
2 votes
0 answers
328 views

Refreshing standard lightning components

I have overridden the detail page of case layout and added standard activity component. I have another custom component which is creating tasks. Problem I am facing is that whenever custom component ...
Kiran Machhewar's user avatar
2 votes
0 answers
1k views

Callback on "e.force:editRecord" Lightning Event

I have a page listing Cases with an edit button assigned to each one - the edit button fires a standard e.force:editRecord event, passing the recordId per button. Is there a way I can run a function/...
Thomas McFarlane's user avatar
2 votes
0 answers
53 views

Lightning component with force:* dependency will reload endlessly

I had a component defining <aura:dependency resource="markup://force:*" type="EVENT" /> using the wildcard to not have to thinks about what to define when. But the the component forced to ...
Robert Sösemann's user avatar
2 votes
0 answers
243 views

Strange availability of force:navigateToSObject events in lightning component

I'm currently facing a really strange behaviour during Lightning component developement. I created a react app that runs inside a simple lightning component, which only provides the style and script ...
Florian Gümbel's user avatar
2 votes
0 answers
111 views

Access to the $A aura object inside a softphone

I'm trying to integrate my softphone (which uses the Lightning OpenCTI framework from api/38.0/lightning/opencti.js) with a home-made lightning component. I've got everything set up and the lightning ...
Claudiu Apostol's user avatar
1 vote
0 answers
37 views

Child component need to re render after value changes in parent component

I have 3 components. Grand Parent --> Parent --> Child. When ever data changed in Child LWC I need to Re-render the Child LWC which is inside Parent LWC. I have tried GET SET methods also. But ...
Aryan's user avatar
  • 27
1 vote
1 answer
110 views

Visualforce handler not invoked when event fired in aura component

I'm using an aura component in a visual force page. Aura Component: RichInputText.cmp <aura:component> <aura:attribute name="bodyVal" type="String" /> <!-- ...
Ibrahim Ahmed's user avatar
1 vote
0 answers
116 views

Something is wrong with my code. [LWC Lifecycle hook problem]

I am stuck and unable to figure out a way to get out of this problem. I know I am doing something terribly wrong here. I have two LWC Components - Parent [a container with multiple values to select[...
sfdc_cosmokramer's user avatar
1 vote
1 answer
2k views

Handle LWC event in Visual force page

I have overridden Standard "convert Lead" button with a Visual force page. LWC component is inside Visual force page using Lightning out. When I click Cancel button in LWC component, I want ...
Sudhir Balijepalli's user avatar
1 vote
0 answers
83 views

Is there an event created when the arrow buttons are clicked on a OOB Flow Screen Component?

In the below screenshot, is there an event created when the arrow buttons(in Red box) are clicked? We would like to customize service resource availability so we need to know if next week or previous ...
jejejean's user avatar
1 vote
1 answer
2k views

LWC event listeners not responding

I have an LWC child component that is dispatching a custom event as such: console.log('bw: fire saveslotclick custom event'); //fireCustomEvent(this, 'saveslotclick', { slot: this....
Bill Woodson's user avatar
1 vote
0 answers
806 views

Handling Google Analytics with User Consent Cookie in Communities

We are setting up a public community (LWR template) and want to use Google Analytics. As there is the Google Consent Mode (see good explanation here) and the new Lightning User Consent Cookie Module, ...
Maserick's user avatar
  • 100
1 vote
0 answers
358 views

Manually Trigger cellchange Event on Datatable

Is there a way to manually trigger the cellchange event on a datatable? I'm using a custom datatable that allows a custom data type - a dropdown (combobox) - it's based on this custom datatable. I ...
jbyrd's user avatar
  • 641
1 vote
1 answer
685 views

Lightning: Edit recurring event series causes trigger to fire twice

In trying to create a trigger for recurring events, I'm noticing the trigger firing twice. I'm doing this on a new and clean developer org, so no existing workflows, processes, flows, or triggers. ...
Minto Tsai's user avatar
1 vote
1 answer
666 views

EventLogFile : How can we see how many times a user clicks on a hyperlink

On our Account object we have a custom formula field that spits out a hyper link to the user. When the user clicks the link they are directed to a custom lighting component. Using the EventLogFile ...
Andrew Olson's user avatar
1 vote
1 answer
408 views

Lightning Web Component PubSub Only Works for Admin in Community Preview

Below is my publisher. It's nested in an Aura component, which is itself on a community page: import {LightningElement, wire, track, api} from 'lwc'; import { CurrentPageReference } from 'lightning/...
Gabriel Rivera's user avatar
1 vote
0 answers
165 views

Issue/bug with standard spinner

since last week i've this problem on the org and i'm still not able to solve it. Here's the details: In every standard action like creating or editing an account using the standard buttons Edit and ...
gmemo's user avatar
  • 49
1 vote
0 answers
477 views

custom files related list component not reflecting new files upload

I have a custom lightning component that displays further details from the contentVersion. the customer requirement is to display both, the standard files related list and my custom cmp. now, when the ...
yuval boim's user avatar
1 vote
0 answers
48 views

Lightning Data Service Interaction with Page Edit giving error

I have created a Lightning component to display nearBy accounts using Geolocation for a given Account. I am able to display a list of locations passing BillingLatitide and BillingLongitude from the ...
P.Shri's user avatar
  • 69
1 vote
0 answers
391 views

Detecting attribute update in sibling Lightning component when passed as reference

I have a parent component which has an object attribute called "record". This is passed into two instances of another component as a reference. In child component #1 one of the fields is changed on ...
Thomas McFarlane's user avatar
1 vote
0 answers
939 views

On Change event is not firing after first change in lightning:select

I used lightning:select like this: <lightning:select label="op:" aura:id="opid" name="fop" onchange="{!c.onchangeev}" disabled="{!v.dis}" required="true"> ...
user1974566's user avatar
  • 2,315
1 vote
0 answers
651 views

Lightning and browser back/forward navigation not reloading page

When going back in the browser from one lightning page to another, I have a situation where data that was modified in a subsequent page is now stale on the previous one and the user has to refresh to ...
D Coder's user avatar
  • 11
1 vote
0 answers
129 views

Can event.source() be stored as attribute in dynamically created component without destroying source when dynamic component is reloaded

Use Case I have a parent container that has a single reusable modal component. There is also a container with many rows of line items rendered as individual components. In certain circumstances a ...
Daniel Collier's user avatar
1 vote
0 answers
267 views

Lightning Component Error, - Init Event : Error during init [Cannot read property 'apply' of undefined]

I am developing a new Lightning Component with custom Event. But I am getting Following Error while loading the Page in browser Preview. Sorry to interrupt This page has an error. You might just ...
NITIN's user avatar
  • 47
1 vote
0 answers
43 views

How to remove the reoccuring events for a particular user in salesforce

How to remove the reoccuring events for 2 inactive users
kunal gupta's user avatar
0 votes
0 answers
314 views

How to call renderedCallback() in HandleChange field input only once

I have LWC with search input, with every handleKeyChange click on input, renderedCallback() is called, but I need it to call only once. Controller: @track hasRendered = false; @wire(getAcc, { ...
annat's user avatar
  • 1
0 votes
0 answers
71 views

Code inside apex method not running intermittently on button click Aura component

I'm having a parent and child Aura component. There is a button on the parent component that invokes a js action and it further calls a aura enabled apex method. The issue is it is calling the apex ...
Lightning Developer's user avatar
0 votes
0 answers
123 views

Why shows this error in Aura lightning Events?

ChildCompo:- <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,...
Crazy XYZ's user avatar