Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Thanks for this easiest answer and this works like a wonder. I got to know there is something like this existing in javascript lightning controller. Thank you so much. But the only problem is, whenever I try to edit and save the row(record) which is already edited and saved, am getting [component.find(...).get is not a function] error. Commented Dec 5, 2018 at 10:36
  • @mohammedazarudeen My answer was to grab all the rows of data stored in the attribute "freightChargesAir", then find the specific row using Array#find. Incorrect: component.find(...).get(...) Correct: component.get(...).find(...). Commented Dec 5, 2018 at 15:24
  • My apologies sfdcfox. It is due to the code logic I have in the bottom of the function. I corrected that issue and ofcourse yeah it is working very well without any issues. Thanks for the answer. I got to know the new thing. Marking this as best answer. Commented Dec 6, 2018 at 16:36
  • Hi @mohammedazarudeen, I'm facing the same kind of issue.Mine is a picklist field instead of a text field.Upon doing this "component.get().find(row => row.Id === event.target.id);" I get Undefined in my console.Can you please guide me in this. Commented May 28, 2019 at 7:00
  • @jayasuriyajanarthan It sounds like you have a different issue? I recommend asking a new question so you can get the help you need. Commented May 28, 2019 at 10:52