Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [aura-method]

Questions related to the aura:method tags which are used to define a method as part of a component's API.

Filter by
Sorted by
Tagged with
1 vote
1 answer
36 views

Aura method not firing from Parent component

I'm not sure why today is seeming like a Monday again. I'm referencing these articles letter for letter but yet my code is not executing the child component method. I'm probably missing something ...
user avatar
0 votes
2 answers
1k views

Passing Data from Child to Parent in Aura

I am trying to open a modal once clicking on a button which is in the parent component. For that I have used aura:method in the child component and calling that child component in the parent component ...
user avatar
0 votes
1 answer
48 views

Information about event in JS controller in AURA

I would like to know where I can get relevant information about the methods that have the event of the aura controller, i.e. this my_function: function(cmp,event,hlp)... I know a lot of the others, ...
user avatar
0 votes
2 answers
6k views

How to pass array to apex method in LWC

I am creating custom functionality of Adding opportunityLineItem in LWC. Once I input details and click 'Save' I am not able to pass string value or object value to Apex method. Throwing error. ({"...
user avatar
  • 624
0 votes
0 answers
521 views

How to change the value of aura:attribute inside a aura:iteration when a condition is met?

I want to change the value of aura:attribute when a particular condition is met inside an aura:iteration. This is the code: <aura:component> <aura:attribute name="products" type="List" ...
user avatar
3 votes
1 answer
439 views

display the contents of aura:if from another component

I'm trying to show (or unshow) the contents of aura:if by changing the isTrue value from another component. The value of isTrue is changed but the contents cannot be displayed.. Anyone knows how to ...
user avatar
  • 197
1 vote
1 answer
154 views

Reading a file from salesforce aura helper recursion problem

I'm trying to read a file in an async way on aura helper, but recursion is not happening, is just executed once. The code is pretty simple and tried a lot of approaches but no one work. I try with ...
user avatar
0 votes
1 answer
388 views

@AuraEnabled methods and fields : field declared as @AuraEnabled not available in @AuraEnabled method

I am new to lightning and i have written a controller for the component. public class TScontroller{ @AuraEnabled public Case caseDetail {get;set;} . .// few @AuraEnabled variables declared as above ....
user avatar
0 votes
1 answer
290 views

Lightning Inter-Component Communication Patterns: how to pass efficiently pass down data from parent to dynamically created child? [duplicate]

I know two ways of pass data from parent to child in the case of a static created child components: passing attribute values from parent to child and exposing child methods to parent. The latter ...
user avatar
1 vote
2 answers
1k views

Standard aura:attributes and aura:method attribute

My question is in regards to the fact that I need to get a value from Child component to Parent component. I want to directly call a method from the parent to the child to obtain some data from that ...
user avatar
0 votes
1 answer
1k views

NaN issue in aura:method

I have a aura:method the return value from parent is NaN. Why is my code returning NaN? child component <aura:method name="myAction" action="{!c.myAction}" ...
user avatar
  • 13
4 votes
1 answer
2k views

Why is an action callback not getting called?

I have a helper function called via a controller function and am calling it in two circumstances: save : function(component, event, helper) { var action = component.get("c....
user avatar
  • 129k
4 votes
1 answer
386 views

Do calls to aura:method only return synchronous results in the context of the framework lifecycle?

I have been experimenting with returning synchronous results from an aura:method called by a parent component. I have observed two use cases in which results are never returned: When the aura:method ...
user avatar
2 votes
3 answers
21k views

aura: method to call child component controller function not working

Using <aura:method>, I am not able to call child component controller function from parent controller. Below code. Parent Component <aura:component access="global" implements="force:...
user avatar
  • 718