Timeline for Call multiple helper methods as order in lightning controller
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 14, 2016 at 11:46 | vote | accept | Ajay | ||
Sep 14, 2016 at 11:06 | history | edited | Praveen | CC BY-SA 3.0 |
added 53 characters in body
|
Sep 14, 2016 at 10:52 | comment | added | Praveen |
apart from this line : var c = component.find("index0"); rest of your code is fine.why do you want to call the above line?.As I said earlier, chain the next method2 in the callback of action method1 will work fine.
|
|
Sep 14, 2016 at 10:47 | comment | added | Ajay | I am able to display even images by clicking show/hide, but my case is what will happen if I am call another apex method2 in helper1 and trying to get front end attributes?? | |
Sep 14, 2016 at 10:43 | comment | added | Praveen | so your use case is that,display some employees and clicking on the show/hide you are trying to query the attachments(only images) under the employee and display it.Am I right? | |
Sep 14, 2016 at 10:41 | comment | added | Ajay | As I have no reputation. I am unable to chat you. | |
Sep 14, 2016 at 10:35 | comment | added | Praveen | you cannot dynamically set aura:id as you do in for html id attribute inside aura:iteration.can you check the chat now? | |
Sep 14, 2016 at 10:33 | comment | added | Ajay | I have modify them as aura:id still getting undefined error. And chat is not enabled for me. | |
Sep 14, 2016 at 10:25 | comment | added | Praveen | @Ajay component.find() can take only aura:id not html id attribute.Join this room to discuss about it. | |
Sep 14, 2016 at 9:37 | history | edited | Praveen | CC BY-SA 3.0 |
fixed answer
|
Sep 14, 2016 at 9:33 | comment | added | Praveen | Then chain methods in the actions callback as described in the above answer | |
Sep 14, 2016 at 8:00 | history | answered | Praveen | CC BY-SA 3.0 |