Hi Alessandro Belli,
I would like to share the proper approach on this:
1.In Patient, change Donation (String) → TotalDonated (Decimal, default 0).
On the popup’s Donate button, call a microflow ACT_SaveDonation:
Validate $Donation/Amount > 0.
Set association: Change $Donation/Donation_Patient = $Patient.
Commit $Donation.
Change object $Patient/TotalDonated = (if empty($Patient/TotalDonated) then 0 else $Patient/TotalDonated) + $Donation/Amount, Refresh in client = Yes.
Commit $Patient .
Close page (refresh caller, if available).
Try this method, It will help you !!