Hi @evaldobaladelli :
Firstly, let me explain why the “lista 1“ has not been updated:
The point is syntax.
We can split this code into 2 parts:
Part1:
Patch ('Registro1';”Part 2”)
Part2:
Primeiro (Filtro ('Registro1'; Processo = Valor (lblID.Text); 'Campo2' = cmbAprovaMA.Selected.Value))
According to the formula, the result of Part2 will used to update 'Registro1'.
However, the key is that the operation performed by part2 is to filter out specific records from "Registro1". From the results, the return value of part2 is still the original record in the table "'Registro1'", which is equivalent to using "'Registro1'" own records to update their own records, so in any case, "'Registro1' "Nothing will change.
Secondly, I suggest you change your code to the following format.
Patch( DataSource, BaseRecord, ChangeRecord1)
For example:
Patch ('Registro1'; (Primeiro (Filtro ('Registro1'; Processo = Valor (lblID.Text); 'Campo2' = cmbAprovaMA.Selected.Value)));
{Field1:value1; /*Filed1/2/3 is field names*/
Field2:value2; /*value1/2/3 is the value you want to update*/
Field3:value3}
)
I think this link will help you a lot:
Patch function in Power Apps
Best Regards,
Bof