The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [lightning-events]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Unable to handle onclick event from child LWC component

There are hoards of examples where event propagation is an issue but I'm unable to fire event handler on the actual component the user interacted with. Here's what I have: Parent Component <...
0
votes
1answer
340 views

OpenCTI: Throw a Lightning event from Visualforce up to Lightning Experience?

We're working with an OpenCTI adapter that the vendor has open-sourced for us. So we have the ability to customize the dialer page which is by design written in Visualforce. The dialer appears in the ...
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 ...
0
votes
2answers
22 views

Aura event not being caught

I have an onMouseover function that fires and event to another component within an app. The event is firing correctly but the other component is not 'listening' to the event. None of the code in the ...
0
votes
1answer
24 views

How to track if user has inputted any text on the Salesforce Chatter Email Publisher

How do we know when user has made any inputs on the Email Publisher? When user made any changes to this field, and accidentally closes the tab on the Service Console, there will be no pop up message ...
2
votes
1answer
2k views

Event in Lightning, not working as expected

I have two components in which one is parent and other one is obviously child. I have a ui:inputtext in child component and on keyup event, I am handling fired event in parent component. But it is not ...
0
votes
0answers
434 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
1answer
39 views

communication between 2 LIghtning web componets, passing dynamic parameter from Parent to chlid LWC using Events

I would like to send record Id(Seminar ID dynamically from for each) from Parent LWC to Child LWC Template Code: <lightning-tile key={seminar.Id}> <lightning-layout key={seminar.Id}> ...
0
votes
1answer
745 views

Lightning Event with multiple components as handlers?

We have created a lookup component that we are reusing throughout our lightning app. Because these lookups are under each other, I would like to have all other the drop downs be closed as soon as one ...
2
votes
2answers
4k 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 ...
1
vote
0answers
80 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 ...
0
votes
1answer
28 views

Lightning Event not firing in Component

I am working through the Aura components trailhead but am running into an issue where the component event is not firing. Here is my code: CampingList cmp <aura:component controller = '...
1
vote
1answer
39 views

Lightning component detect keystroke in page [closed]

Is there a way to a lightning component detect when the user click a key in the page as whole? My idea is to have the component in the home page and using a shortcut the user can invoke an action even ...
0
votes
0answers
11 views

Is it possible to add Notes and Files to an new Task or Event in Lightning?

Is there any way to add Notes and Files when user tries to create a new Task or Event in Lightning. But in Salesforce Classic we could see the attachment in the UI, when user tries to add any ...
0
votes
2answers
389 views

Uncheck child component checkboxes from parent button

How can I reach this behavior? My component is structured like this: <aura:component> <button onclick="{!c.clearCheckbox}" /> <aura:iteration items="{v.items} var="i"> ...
3
votes
3answers
1k 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 = $...
0
votes
0answers
43 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
968 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 ...
0
votes
1answer
1k 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" ...
1
vote
2answers
127 views

Lightning empApi subscribe and unsubscribe method in JS constroller

I have an component using lightning empAPi. In controller, I am using subscribe method and didn't using unsubscribe method. Is that required to use unsubscribe method in controller. IF required please ...
1
vote
3answers
5k 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
1answer
56 views

LWC Event handler for event type with underscores

According to the documentation on event dispatching event types should follow these rules: No uppercase letters No spaces Use underscores to separate words When I attempt to use underscores in my ...
0
votes
1answer
590 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
3answers
1k views

Lightning:openFiles Fires but does nothing

I am trying to use some out of the box events within lightning components, but nothing seems to happen once they are fired. I have the same issue with pretty much any out-of-the-box event. Currently, ...
2
votes
1answer
26 views

Can an application event be handled by a lightning component whose body isn't rendered?

I have a component that receives an app event to indicate if it should be made visible or not. I'm firing this app event from another component on the page. The receiving component show only show ...
0
votes
0answers
30 views

GetTabInfo or TabUrl of Closed Tab in Lightning

<aura:handler event="lightning:tabClosed" action="{! c.onTabClosed }"/> ({ onTabClosed : function(component, event, helper){ var workspaceAPI = component.find("workspace"); ...
0
votes
3answers
106 views

Override Default Tab Key press event in Lightning component?

I am trying to override the default tab key press event. For other key this custom method is getting called but for some keys like Tab,enter.. it's not working. Below is the code what i tried. xxx....
0
votes
1answer
25 views

How to pass event.preventDefault(); from child to parent

I have a wizard with a child object. The child object has an event.preventDefault(); (Step 2 wizard). How do I pass this to the wizard (parent) to prevent going to the next page (step 3) of the wizard....
7
votes
2answers
2k views

Lightning Web Component use Publish-Subscribe event in Community cloud

How can we use publish-subscriber event pattern in Community Cloud using lightining web component. I have drag-and-drop two Lightining Web Component(LWC) in a community page. On click on first ...
1
vote
0answers
93 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 ...
0
votes
1answer
23 views

RefreshView Event is not getting fired in custom object record page

I have a lightning component which is residing in a lightning record home page of a custom object. If I modify any fields, usually Salesforce fires refreshView event and we can consume the event in ...
0
votes
2answers
971 views

Sending Meeting invite in lightning

i have worked in Salesforce Classic for sending meeting invite thru EVENT calendar. But in lightning, I can only save meeting invite. how can i send same meeting invite to contacts on email in ...
2
votes
1answer
296 views

LWC – Access Templates and Methods of child components (multi-chained children)

Normally closed shadow DOM/root will not allow the access of child component's DOM. Consider below example: <main-component> <parent> <child> <iteration&...
3
votes
1answer
2k views

The campingList JavaScript controller isn't calling 'saveItem'

The Trailhead challenge check is telling me the following: Challenge Not yet complete... here's what's wrong: The campingList JavaScript controller isn't calling 'saveItem' in the Apex class to ...
0
votes
0answers
38 views

aura:iteration Data table: Cannot find Aura:id for the lightning input used inside the aura:iteration

i need to use the aura:id of lightning:select. the table is rendered inside aura:iteration. there is another field(table column field) inside table that needs to be shown based on the the select ...
17
votes
4answers
680 views

Why EXACTLY not calling Aura.Action attribute from Lightning Controller using $A.enqueueAction()?

Since the event registration/subscription feels like a long roundtrip for simple things, I found a "hack" for implementing a simple onchange handler in my own Lightning Components in form of an Aura....
2
votes
1answer
38 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. ...
0
votes
1answer
48 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 ...
0
votes
0answers
29 views

Get/set an attribute trough Lightning Event

I can't get the attribute trough Lightning Event. By clicking on the button "Get msg" I get undefined: ceEvent.evt: <aura:event type="COMPONENT"> <aura:attribute name="message" ...
0
votes
1answer
37 views

How to set a record's field from the List in component to event?

I have a cmp with List of objects and iteration: <aura:iteration items="{!v.Objects}" var="object"> <div label="Set Id" name="{!object.Id}" onclick="{!c.action}"> {!object....
0
votes
0answers
49 views

Initialize the standard Inline-Edit functionality from a Custom component action

I have standard Opportunity record detail page which has the standard in-line edit functionality. On my opportunity flexi-page, right side custom panel has custom component which needs to update the ...
6
votes
1answer
640 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
232 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 ...
0
votes
1answer
32 views

Aura Component don't catch event from another one

Lightning Event: tripEventer, attribute - trip, Trip__c Component Item: <aura:registerEvent name="openTripEvent" type="c:tripEventer"/> <lightning:button class="slds-align_absolute-...
0
votes
1answer
116 views

Set lightning input in a child component based on parent component onChange event

I am implementing simple Contact create/edit form and I have problems with automatic setting of one field (consbp) based on an entry in different field (AccountID). The main component (contactCreate....
0
votes
1answer
27 views

How to detect list element data changes with “change” handlers?

Accordingly to the documentation, the special aura change handler can be used to detect when a value in one of the component's attributes changes. Everything is fine with attributes of type Boolean, ...
2
votes
1answer
122 views

event.detail is undefined in Lightning:recordEditForm submit event

I'm trying to get field values at Lightning:recordEditForm onSubmit() event.In the documentation example it shows below. my onSubmit event handler as below, I end up getting error, [event.detail ...
0
votes
1answer
319 views

How to force width resizing of lightning:datatable?

I've structured a component in a way that either a lightning:datatable aura component or a lightning:dualistbox. The dual list box is used to set the columns attribute of the data table. The issue is ...
1
vote
1answer
37 views

Building Custom Related List Component

I created a reusable lightning component that will act as a related list component. I want to handle add/remove event when the user makes changes from Edit Page (Settings-> Edit Page). Example: I ...
1
vote
1answer
560 views

Calling Application events in LWC [closed]

i would like to call an Application event in Lightning web component. Below link describes the same in AURA. https://developer.salesforce.com/docs/atlas.en-us.218.0.lightning.meta/lightning/...