Timeline for Getting data from Parent Component to child Component
Current License: CC BY-SA 3.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 16, 2018 at 19:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
May 15, 2018 at 8:53 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 13, 2018 at 17:52 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 12, 2018 at 10:46 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 6, 2018 at 10:40 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jan 5, 2018 at 22:40 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Dec 4, 2017 at 0:30 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 3, 2017 at 2:59 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 26, 2017 at 5:16 | answer | added | Itai Shmida | timeline score: 1 | |
Jul 25, 2017 at 13:28 | comment | added | Arpit Sethi | @user28452, As Martin suggested you just need to pass company record to child component while iterating in parent component something like <c:childComponent company="{v.company}" and add following in child component <aura:attribute name="company" type="company" />. This way whenever you press press a button you can have the company details in child's controller. Hope this helps. | |
Jul 25, 2017 at 7:21 | comment | added | Martin Lezer | Ok. Then you should read the documentation about Lightning events. You just have to pass the company Id to the child component. Then, in your child component, when the button is clicked, just raise your custom event with the company Id as param. Finally, you can handle the event in your parent component and you will be able to get the company Id clicked. | |
Jul 25, 2017 at 7:18 | comment | added | user28452 | That is what I originally thought. But the challenge is in Parent component I do not have specific event to get the record information when user click on action buttons on a given row. <td> ***calling child component***** <c:Actions aura:id="actionCmp"/> </td> | |
Jul 25, 2017 at 7:15 | comment | added | Martin Lezer |
Then you could add a new attribute to the child component. The type of this attribute should be the type of your company variable. Then, just send the company variable related to the child component from your parent. Finally, access your attribute in your createSEComp method using for example : var companyId = component.get("v.company").companyId;
|
|
Jul 25, 2017 at 7:13 | comment | added | user28452 | I am looking to get all field values like Company Id, Company Name, Ultimate Parent Co etc.. I have this information in Parent component. But how do I pass that from Parent to child because no event involved in parent. Because in parent I am just invoking child component. | |
Jul 25, 2017 at 7:11 | comment | added | Martin Lezer | What do you want as record information? | |
Jul 25, 2017 at 7:08 | history | edited | Martin Lezer | CC BY-SA 3.0 |
added 112 characters in body
|
Jul 25, 2017 at 7:06 | history | asked | user28452 | CC BY-SA 3.0 |