Questions tagged [lightning-events]

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

Filter by
Sorted by
Tagged with
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
3
votes
3answers
4k 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
1answer
187 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 ...
1
vote
1answer
688 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'...
7
votes
1answer
864 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
1answer
3k 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 ...
13
votes
2answers
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 ...
18
votes
4answers
4k 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 ...
7
votes
1answer
923 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
1answer
9k 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
2answers
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:...
4
votes
2answers
3k 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 ...
6
votes
1answer
666 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 ...
2
votes
1answer
2k 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
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 ...
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 ...
4
votes
2answers
12k 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
3answers
11k 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 ...