Once again you have not quoted the previous reply, leaving it for me
to guess what it is you did not understand.
Usually you would update the fields in the record and then save it.
Then you can check it saved ok in case validations failed. Look at
the code generally used to update a record in the controller.