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
2answers
16 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 ...
0
votes
1answer
22 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 ....
0
votes
1answer
30 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 ...
0
votes
2answers
254 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 ...
0
votes
1answer
307 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}" ...
4
votes
1answer
977 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....
4
votes
1answer
241 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 ...
1
vote
3answers
14k 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:...