tag:blogger.com,1999:blog-6140199022860280334.post2605122683288268312..comments2024-03-28T13:07:29.449+00:00Comments on Bob Buzzard Blog: Lightning Component EventsBob Buzzardhttp://www.blogger.com/profile/07815472992351343395noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6140199022860280334.post-7075859077975889942017-04-25T14:22:27.611+01:002017-04-25T14:22:27.611+01:00Great post Bob!Great post Bob!Pradeep Danihttps://www.blogger.com/profile/09211720328635378260noreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-37736688297709311302015-11-03T06:59:51.547+00:002015-11-03T06:59:51.547+00:00Apologies the code that I pasted didn't get ac...Apologies the code that I pasted didn't get acceptedAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-24571433684701923262015-11-03T06:40:44.588+00:002015-11-03T06:40:44.588+00:00Hi Bob,
Thanks for the article. I am fairly new to...Hi Bob,<br />Thanks for the article. I am fairly new to Lightning and was wondering I could use your help.<br /><br />I have a component called called main.cmp. Within main.cmp, I use another component called AccountDetails.cmp. AccountDetails.cmp contains a set of textboxes. What I am trying to do is that, from maincontroller.js, I am trying to get the value of a textbox from AccountDetails.cmp. When I use component.find("AccountName").get("v.value"), it always throws a null reference since component.find("AccountName") is undefined because it is a part of AccountDetails.cmp. How do I inform the maincontroller.js that the accountname text is a part of the AccountDetails.cmp? Here is a sample code<br /><br />main.cmp<br />...<br /> <br />...<br /> <br />...<br />AccountDetails.cmp<br /><br /> <br /> <br />....<br /><br />I am able to populate all the values in the textbox to the child component but when I try to retrieve the value of any textbox from the main.cmp, it errs out. I really appreciate if you could shed some light on this. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6140199022860280334.post-74504324706718473772015-05-24T22:24:52.133+01:002015-05-24T22:24:52.133+01:00Nice post as usual Keir. Nice post as usual Keir. Anonymoushttps://www.blogger.com/profile/03355958501197430332noreply@blogger.com