Questions tagged [lightning-events]

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

78 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
300 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 ...
7
votes
1answer
842 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="{!...
5
votes
0answers
501 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 ...
5
votes
2answers
3k views

how to access the save button in a modal when implementing the force:lightningQuickAction

I am actually creating a component that will implement the force:lightningQuickAction so that my component open in a modal window from the action button.I would like to capture the event where the ...
4
votes
0answers
62 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
132 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
2answers
5k 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 ...
3
votes
0answers
618 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, ...
3
votes
3answers
2k 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 = $...
2
votes
0answers
21 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');...
2
votes
1answer
28 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 ...
2
votes
1answer
109 views

Handling Application event in Utility Bar component

I am using a utility bar in a lightning application. I am having a component on the contact record page, from where I am firing an Application event and having a handler on a component which is in ...
2
votes
1answer
277 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
0answers
218 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
342 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
501 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
355 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
1answer
1k 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 ...
2
votes
0answers
324 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
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/...
2
votes
1answer
349 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 ...
2
votes
0answers
46 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
153 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
93 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
1answer
48 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 ...
1
vote
1answer
43 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/...
1
vote
1answer
37 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> ...
1
vote
0answers
121 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 ...
1
vote
0answers
201 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 ...
1
vote
1answer
358 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
215 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
38 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
1answer
920 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 ...
1
vote
0answers
258 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
511 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
312 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
54 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
233 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
3answers
6k views

How to get Child Component value from Parent component in JS controller?

Child Component - SearchBarCmp.cmp <aura:component > <input type="text" class="form-control" onchange="{!c.searchKeyChange}" placeholder="Search" id="SearchKeyValue"/> <...
1
vote
0answers
25 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
1answer
37 views

$A.get('e.force:refreshView').fire() - Refresh not working

I am trying to refresh the parent from the child. From the Parent,I am opening a modal window for update. Once I save the record, modal window close and the parent section should be refreshed. ...
0
votes
0answers
19 views

Rename inner text within standard field

Is there a way to rename the "Search Contacts..." text inside a standard field? This field I am using is located in the Events page? If so, can someone show me how this can be done?
0
votes
0answers
15 views

Interacting with UtilityBar component

I need to display a record pop using a utility bar. We have a use case where an external system will accept the phone call and will send us the phone number of the caller. We need to capture this ...
0
votes
2answers
23 views

Lightning component recordUpdated method binding triggers stale data event

Similar question I've a lightning component which will call a controller method on update action. Below is the code of the component, controller and helper: Component code: <force:recordData aura:...
0
votes
1answer
14 views

is there any impact when calling onclick function without a javascript method?

I have a component where there is a button with onclick function <a class="notifLink" data-toggle="dropdown" aria-haspopup="true" id="buttonDropdownOne" aria-expanded="false" onclick="{!c....
0
votes
0answers
28 views

Customization Best practice

I have a requirement to show, exaclty as the module of Trailhead with the bears Build a bear-tracking App with LWC But instead of bears and map, i need Calendar and map. User in calendar has the ...
0
votes
0answers
17 views

See all Events fired by a element?

I am tired of spraying and praying when it comes to getting values and other information from events fired by elements in LWC (or Aura). I am wondering whats the best way to see what properties and ...
0
votes
0answers
17 views

Is real time event monitoring captures the User Session Activities,Page rendering time,Single page Request/response time

We are planning to implement real time monitoring for event tracking,but not sure if below details are getting captured or not User Session Activities-What action user has performed in that session ...
0
votes
1answer
41 views

Cannot fire event in Aura after clicking browser back button (Unable to fire event. Event has already been fired.)

I have a custom component button called Hello.cmp which opens a popup modal. The modal has multiple buttons called navA and navB which navigates to different page. The navA and navB are other custom ...
0
votes
1answer
120 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 ...