Questions tagged [lightning-events]

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

69 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
268 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 ...
6
votes
1answer
590 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
394 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
57 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
121 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
426 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
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 = $...
2
votes
1answer
177 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
0answers
183 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
274 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
442 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
281 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
912 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
313 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
858 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
115 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
82 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
49 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
0answers
174 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
107 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
33 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
176 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
367 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
272 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
42 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
1answer
308 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 ...
1
vote
0answers
212 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
4k 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
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
14 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
1answer
21 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....
0
votes
1answer
20 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
0answers
19 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 ...
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
0answers
19 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 ...
0
votes
0answers
28 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 ...
0
votes
0answers
18 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
9 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
1answer
18 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
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
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
0answers
303 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
138 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
56 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
40 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
1answer
869 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" ...