Button to change a record field value and save it

Hi! I was trying to create a button in an user interface. This button should change de value of the field "recepción" (boolean) to "true", and save it into the record type ("CPF_Maestro_Pedidos).

With my configuration, I can pass the "true" value to the rule input (record) associated with the record type, but I´m doubting about which is the best way to save (overwrite) the value into the record. Also, I don´t know if I should create an action associated with the button or not. 

Additionally, the interface is a record view interface. 

Options I thought:

1) Use an expression inside the button code (like WriteRecords) to overwrite directly from here --> ¿how would be the structure?

2) Make a process model and use this interface as the start form and use write records component. The problem is that when I try to do that, an error appears (rank ---> data inputs). But the variable "recepcionado = true" is passed when I review the history of the execution.

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data