You need to sign in to do that
Don't have an account?
Shuhbam Sinha
How to update a list of records in a single DML in LWC
Hello Everyone,
I have a scenario where I am showing list of records by using LWC and some of the fields are editable to users. I have used combobox to show the picklist values editable and calling the apex method to update the record on ONCHANGE event but the requirement is to create a SAVE button and save the records. So the challenge is let say if user changess the multiple records and click the save button then how do i update all the records in a single go with this save button .
Please help me on this. Thanks in advance.
I have a scenario where I am showing list of records by using LWC and some of the fields are editable to users. I have used combobox to show the picklist values editable and calling the apex method to update the record on ONCHANGE event but the requirement is to create a SAVE button and save the records. So the challenge is let say if user changess the multiple records and click the save button then how do i update all the records in a single go with this save button .
Please help me on this. Thanks in advance.
Hello Shubham
For this, you can use a JSON to store all the data, and on change of the values just update into the JSON and pass that same in APEX to update.