Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lightning-events]

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

5
votes
1answer
531 views

How to run code when the browser window is resized in a Lightning Component?

I am running some code on the render event that decides whether or not some buttons related to scrolling are displayed depending on some element properties: <aura:handler name="render" value="{!...
2
votes
1answer
144 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 ...
2
votes
1answer
3k 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 ...
2
votes
1answer
824 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 ...
1
vote
1answer
27 views

How to setup eventListener for a LWC component to receive messages from an embedded iFrame

I am having trouble setting up an eventListener for my LWC component to listen messages received from an embedded iFrame. I have a parent component where I have set the event listener in ...
1
vote
1answer
293 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 ...
0
votes
1answer
17 views

Event fired when user redirects to home : exists?

Heyo all, I am working on a Lightning Community. I need to detect whenever the user goes to the main page (clicking page logo, home ling, whatever...). I tried the following events : <aura:...
0
votes
1answer
21 views

Reuse Deleted Aura Component Name

While doing a trailhead superbadge I created a component event named "FormSubmit". After the fact, I noticed that the specific phrasing on trailhead was "formsubmit" so I deleted the component event ...
0
votes
1answer
636 views

Lightning Components: Call init method of a child component from a parent component

I want to call the init method of a child LC from a parent LC. I tried to use aura:method, and call the init method from a parent method. ..... <aura:attribute name="userContact" ...
0
votes
1answer
244 views

'Trailhead Lightning Component Basics: Connect Component with Events' - controller isn't calling 'saveItem'

It works when I test it but I'm getting the following Trailhead error: The campingList JavaScript controller isn't calling 'saveItem' in the Apex class to save the record or setting the 'item' as a ...
0
votes
1answer
446 views

getParam Not Working on Simple Application Event

I have a button which when pressed causes an application event to fire. Before it does this it sets a string value using setParam. The event is fired and handled successfully. However, when I try to ...
0
votes
1answer
134 views

What event fire when you attach a file/attachment on the record page?

I've created a lightning component that shows a table of all contentversions related to the record detail page you are on. However, if upload/add a new file using the "Files" related list, it doesn't ...
0
votes
1answer
182 views

Event and EventRealtion

I am trying to create an event and upon creation of Event i am creating EventRelation to add attendee. While creating Event i am prepopulation some fields in before insert. If i am prepopulation Type ...
8
votes
0answers
257 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 ...
5
votes
0answers
362 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 ...
4
votes
0answers
56 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 ...
3
votes
0answers
117 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?
3
votes
0answers
395 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, ...
2
votes
0answers
20 views

wave:selectionChanged behaviour in Summer '19

I'm creating a lightning app that interacts with an Einstein dashboard. The idea is that when a user filters data in the dashboard, a search is performed in an external system using the filtered data. ...
2
votes
0answers
174 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 ...
2
votes
0answers
250 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 ...
2
votes
0answers
427 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&...
2
votes
0answers
262 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. ...
2
votes
0answers
304 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 ...
2
votes
0answers
809 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/...
2
votes
0answers
45 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 ...
2
votes
0answers
114 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 ...
2
votes
0answers
77 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 ...
1
vote
0answers
119 views

Send data from Lightning component to visualforce page without window.postmessage

I am using window.postmessage() to send data from lightning component to visualforce page as given in below link. https://developer.salesforce.com/blogs/developer-relations/2017/01/lightning-...
1
vote
0answers
89 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 ...
1
vote
0answers
29 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 ...
1
vote
0answers
157 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 ...
1
vote
0answers
338 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"> ...
1
vote
0answers
264 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 ...
1
vote
0answers
37 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 ...
1
vote
0answers
201 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 ...
1
vote
0answers
24 views

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

How to remove the reoccuring events for 2 inactive users
0
votes
0answers
15 views

window.addEventListener firing Multiple times

I have a situation where I need to reDirect the lightning page to record detail page once BACK button in iFrame is clicked. So, Java team was sending a postMessage from the page which I am opening it ...
0
votes
0answers
8 views

Firing an application event of package A from package B

I recently came up against a problem related to event communication between two managed packages. In my scenario, I am able to fire an application event from package A and handle it in package B. My ...
0
votes
0answers
45 views

Stop lightning custom event after handling it

I have a custom lightning component that calls another one via event and retrieve specific data. Problem is that I can call my component many times and every time I enter this component again from ...
0
votes
0answers
8 views

Lightning Calander

I am new to lightning, I want to make appointment system using standard lighting calendar, Is there anyway i can replace day in day view with staff name like we have in fullcalendarui. i'll share a ...
0
votes
0answers
174 views

Lightning Record Edit Form onsuccess not firing

Having issues getting the onSuccess Event to fire on my Lightning:recordEditForm. My submit button is outside of the Lightning:recordEditForm and that works perfectly but i'd like to have the ...
0
votes
0answers
68 views

Lightning aura event handler error

I am using a custom application event (ackRequest) that I use to validate all components in a page. This event is fired in the afterRender of the community layout component. The event is handled ...
0
votes
0answers
36 views

LEX console method issue - lightning:tabClosed

I am trying to utilise the lightning:tabClosed event within my LEX component on a Case. I want to be able to get the record ID for the tab that was closed, as I need to do some processing using that ...
0
votes
0answers
39 views

Firing an event from one component to another in Lightning

Appreciate some guidance. I have a component which has a checkbox component and a calendar component. I would like to fire an event when a checkbox is selected and render the 2nd component(calendar) ...
0
votes
0answers
26 views

Lightning Application event undefined in d3.js .on() handler

I'm trying to fire an Lightning Application event from a d3.js handler. Basically I'm doing following: let stageMenuSelection = stageMenuContainer.select(stageMenuSelector), ...
0
votes
0answers
36 views

Change Platform Event Notification on Click

We are using the platform events to deliver the custom lead notifications through apex class. Database.SaveResult result = Eventbus.publish(leads); When the user clicks on the notification message, ...
0
votes
0answers
25 views

Lightning: Standard events are not firing in some Sandboxes

I have created a custom lightning component for users to create new Case from the Account related tab. However standard events such as "navigateToSObject", "navigateToObjectHome" are not firing after ...
0
votes
0answers
298 views

Aura event recordSave not available after reloading the Page (Browser tab refresh)

I am using Component force:recordEdit in my lightning component cmpA to show standard Record Edit page and to handle event force:recordSaveSuccess (Successful Save). Custom component cmpA is being ...
0
votes
0answers
187 views

Unable to invoke action from ui:button component in Lightning

Could you please help in solving this issue?. I am unable to invoke controller action from ui:button press event. Code is below. Controller.js ({ displayName : function(cmp, event) { ...