Activity Forums Salesforce® Discussions Lightning Component error

  • Lightning Component error

    Posted by Nitish on April 30, 2016 at 5:17 pm

    I can't seem to figure out the cause of the error, or a sufficient workaround but here's my predicament. I've built a lightning component which contains an icon. On click of this icon, it opens a modal with the corresponding records edit page inside using the force:recordEdit component.

    Getting this error:-

    Unfortunately, there was a problem. Please try again. If the problem continues,
    get in touch with your administrator with the error ID shown here and any other
    related details. Something has gone wrong. recordLayout.get is not a function.
    Please try again.

     

    Piyush replied 8 years, 6 months ago 2 Members · 1 Reply
  • 1 Reply
  • Piyush

    Member
    May 26, 2016 at 11:07 am

    Hello Nitish,

    I was also getting same error when i was using <force:recordEdit> component directly in the markup. You have to create it dynamically and replace it with a new dynamically created component on each action.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos