Timeline for How to access aura:id value in init method of salesforce lightning
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 24, 2018 at 10:17 | comment | added | Sanjay | Hello Dhanik, Could you take telephonic call with me for this, I will you make more clear on call I hope | |
Aug 24, 2018 at 10:03 | comment | added | Dhanik Lal Sahni | Please check this URL help.salesforce.com/…. It should help. | |
Aug 24, 2018 at 9:50 | comment | added | Sanjay | Now I updated my query with related screen shot, please suggest me something | |
Aug 24, 2018 at 8:48 | comment | added | Dhanik Lal Sahni | show you complete code. I have checked it and working as expected. | |
Aug 24, 2018 at 8:43 | comment | added | Sanjay | lightning:inputField field is showing value, but it is not access in "init" method. I tried with value attribute also but still it is not accessing | |
Aug 24, 2018 at 8:27 | comment | added | Dhanik Lal Sahni | you have to put value attribute also in lightning:inputField field. as you are not adding that attribute, it is showing undefined. If you add that it will work. | |
Aug 24, 2018 at 8:24 | comment | added | Sanjay | I was already changed 'cmp' with 'component' but i was getting the same issue | |
Aug 24, 2018 at 8:12 | comment | added | Dhanik Lal Sahni | As there is no value parameter, it is showing undefined. I have changed inputField declaration. It is accessible now. | |
Aug 24, 2018 at 8:09 | history | edited | Dhanik Lal Sahni | CC BY-SA 4.0 |
Changed component code.
|
Aug 24, 2018 at 8:06 | comment | added | utm | because in the code snippet you have once: 'cmp' and 'component.find'. Both have to be the same. So just change cmp in the doInit function to component | |
Aug 24, 2018 at 7:52 | comment | added | Sanjay | Output: ----caseTypeId------undefined, when I put this in init method it returns "undefined" | |
Aug 24, 2018 at 7:31 | history | answered | Dhanik Lal Sahni | CC BY-SA 4.0 |