Questions tagged [lightning-events]
Lightning Events are a way for markup component to communicate its changing state
334 questions
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 ...
5
votes
1
answer
635
views
Which force:* events must I declare as <aura:dependency>
I'm confused when to use <aura:dependency resource="force.."> and when not?
If my component is using on of the following system events does it need to be explicitly declared as dependency?
...
4
votes
1
answer
2k
views
Event handler not invoked when event is fired
I am having trouble raising event from one component and capturing it in another component.
Here is what i am trying to do.
I have button on my home page.
Clicking the button opens the first modal ...
0
votes
1
answer
810
views
Need to change Value on every value change in lightning component
HI I Want to Change Result(Servicevalibility) value as soon as there is any change in Input Fields.But,Now its changing only when i change the value and press tab key .
Component -
...
11
votes
1
answer
21k
views
lightning:spinner solution that finally works (using custom events, not aura:waiting)
Lightning components without a working loading indicator are just not professional.
Too bad that there is not code example out there that seems to work under real-world circumstances.Every blog out ...
3
votes
2
answers
3k
views
Lightning openfiles error
I am using lightning:openFiles to popup the file in lightning but after doing research and searching similar post in Stack exchange i am still unable to find out the error.
<aura:component ...
3
votes
1
answer
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
1
answer
160
views
Component event handler not invoked
I have a hierarchy of components as shown below:
c:DataGridContainer
|__ c:DataGrid
|__ c:DataTable
I have defined a component event(...
3
votes
1
answer
861
views
Dynamic checkbox component in Lightning, unable to get event in controller
I am creating dynamic checkbox component in Lightning in helper class but I am not able to capture click event in controller class as value is undefined for event.
Helper
var checkBoxDef = [];
var ...
1
vote
0
answers
269
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 ...
0
votes
2
answers
443
views
Handling events from UI components
I was reading following document (https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ui_events.htm), but there is nowhere specified how to find out, which UI component triggers ...
2
votes
0
answers
247
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 ...
6
votes
1
answer
6k
views
How do I get the Lightning Component "destroy" system event to fire?
I have a fairly bog standard Lightning Component with markup like:
<aura:component controller="MyController" implements="flexipage:availableForAllPageTypes,force:appHostable,force:hasRecordId,...
1
vote
0
answers
46
views
Value change not directly detected [duplicate]
Say I have a component and child as below:
Component
<aura:attribute name="acc" type="Account"/>
<aura:handler name="change" value="{!v.acc}" action="{!c.valueChanged}" />
<c:myChild ...
1
vote
1
answer
1k
views
Salesforce Lightning Component TypeError evt is undefined
I have a child component to upload a file and set the file related values on the event parameters and calling that event on the parent component.The event is of application type. Whenever i click on ...
4
votes
1
answer
5k
views
Firing Events from the Visualforce and Handling the Events in lightning components
If I have a visualforce page embedded in a lightning component.
How can I fire a lightning event in the visualforce page and then handle it in the lightning component?
In my Visualforce page i ...
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
5
votes
3
answers
9k
views
Callback event on $A.get('e.force:editRecord') in lightning
I'm using $A.get('e.force:editRecord') to display standard lightning edit modal window. I want to refresh my component after user saves the given record.
However there are no callback events ...
4
votes
1
answer
422
views
Async call from lighning component [onInit] to [afterRenderer]
is it possible to pass some arguments from the onInit method of a Lightning component to be performed when the renderer finishes?
In my case I'm loading data in the onInit and want to modify some ...
2
votes
1
answer
1k
views
aura:waiting fired after aura:doneWaiting
When doing development with Lightning, I've noticed that the order events are fired/handled are not deterministic (this makes perfect sense given the architecture of Lightning). Unfortunately, what I'...
8
votes
1
answer
2k
views
Workaround for application event duplicates in cached lightning components (IN LOCKERSERVICE)?
This link should provide a lot of background information for my issue.
Basically the problem is with Application Events, and cached lightning components.
If your lightning component lives inside a ...
4
votes
1
answer
5k
views
How to use event navigateToComponent
Can anyone help me? Trying to do very simple function to navigate from component to another. I copied the code from Developers guide, but for some reason it doesn't work for me.
My function to ...
10
votes
2
answers
2k
views
Lightning Events: why force:refreshView is fired 4 times when a record is updated via standard Record Detail on Flexipage?
I need to detect record-updates by different sources as stated here: Lightning Components: how to use events to detect record updates?
For this example, I'm using the standard Record Detail compo on ...
17
votes
4
answers
11k
views
Lightning Components: how to use events to detect record updates?
I have a custom Lightning Component sitting on a Flexipage for e.g. Account. Now I want to register an handler, which will be invoked each time, the record is updated. Updates might happen via
...
4
votes
1
answer
2k
views
Lightning Events: how to get the name of an Application event in the handler
I want to have one method for ALL events. In that method, I need to dispatch the event-name and whatever detail I can get about the event. The way I'm trying it, all seems to be empty (s. Result). Is ...
2
votes
1
answer
13k
views
The campingList JavaScript controller isn't setting the 'item' as a parameter or saving the record correctly
I have been through several posts on workarounds to this issue where the code works, but the challenge is not passed, none of the proposed solutions seem to work for me:
https://d2hwpln2xvs3s....
3
votes
2
answers
2k
views
Lockerservice and event.getSource()
I have a few lightning components already written and those use <lightning:x /> markup.
I am still not able to use event.getSource() instead of an aura:id in scenario where I do an aura:...
5
votes
2
answers
5k
views
How do you stop an application event from propagating to another instance of the same component?
I'm currently building a native dynamic data table in lightning (not using any 3rd party libraries). For some features of the table to work, I had to use application events because component events ...
4
votes
1
answer
1k
views
Lightning Components: is the Standard Tab component firing app events when switching tabs?
I need to know when a tab is switched. Can I subscribe to an event and get notified?
In my usecase I need to commit pending changes before user switches tabs or at least notify the user. Just need an ...
4
votes
1
answer
3k
views
How to find out when force:editRecord dialog is closed after saving changes?
I have an appHostable component that I exposed as custom lightning component tab and added to one of my lightning applicaitons (lightning nav bar). The component is trying to use force:editRecord ...
5
votes
2
answers
5k
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 ...
2
votes
0
answers
116
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 ...
5
votes
2
answers
20k
views
How to get parent lightning component's attribute in child component?
I have a parent component name "ParentComp" which has 3 attributes A,B and C of type String. I have a nested component "ChildComponent". I want to change the value of parent component's attribute B ...
5
votes
3
answers
15k
views
How do I get the Value of a ui:inputCheckBox Lightning Component?
I am currently stuck on an issue I am having getting the value of the ui:inputCheckbox Lightning component. In the Lightning Component Developer Guide, the following example is provided:
COMPONENT ...