• Manoj Kumar 813
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies
There is scenario where I am show data from custom setting in data table  and allow user  to edit certain fields on table .And clicking on custom button the row which are slected with updated values should be inserted in another object.I am able to perform the insert but not able to get the updated values .Can anyone help.
 
I would like to design account lwc component where I will be using record id passed from another component .
The component will be in view moved and on clicking edit button it will show the fields in editable mode and on cancel it will render to previous value.Only wire service need to be used.
 
import { LightningElement,wire,track,api } from 'lwc';
import getAccountDetails from '@salesforce/apex/accountDemo.getAccountDetails';

export default class Assignment1 extends LightningElement {
     @track accountResult;
        @wire(getAccountDetails) accounts;
            
}

1.Authorised org in place.
2.Sractch org in place
3.Dev Hub in place.
4.LWC local server in place.
5.Salesforce extension pack instal and updated.

Error can anyone help me to resole it

{"error":[{"message":"error parsing apex response: */{\"message\":\"apex://accountDemo: No apex action available for accountDemo.getAccountDetails\"}/*ERROR*/"}]}
import { LightningElement,wire,track,api } from 'lwc';
import getAccountDetails from '@salesforce/apex/accountDemo.getAccountDetails';

export default class Assignment1 extends LightningElement {
     @track accountResult;
        @wire(getAccountDetails) accounts;
            
}

1.Authorised org in place.
2.Sractch org in place
3.Dev Hub in place.
4.LWC local server in place.
5.Salesforce extension pack instal and updated.

Error can anyone help me to resole it

{"error":[{"message":"error parsing apex response: */{\"message\":\"apex://accountDemo: No apex action available for accountDemo.getAccountDetails\"}/*ERROR*/"}]}