a!update shows error

Certified Associate Developer

I have a grid with data from the record type, I should have a link a column to either withdraw or cancel. when a user clicks its. The status in the record type has to be updated .UI below

when I am trying to update the record type it shows error. Please help

error:

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Hey, First you need to use a!save() to save the result into the correct target otherwise you'll get this error. And also the code seems a bit off to me specifically the data part of update function. For updating the status you can try using startProcess() or a related action and by passing the identifier you can update the record with correct status there only and it will be much simpler to configure and understand.

Reply
  • 0
    Certified Lead Developer

    Hey, First you need to use a!save() to save the result into the correct target otherwise you'll get this error. And also the code seems a bit off to me specifically the data part of update function. For updating the status you can try using startProcess() or a related action and by passing the identifier you can update the record with correct status there only and it will be much simpler to configure and understand.

Children
No Data