# Forcing a field to update for delta updates

**URL:** https://talk.remobjects.com/t/forcing-a-field-to-update-for-delta-updates/33433
**Category:** Data Abstract
**Tags:** delphi
**Created:** [May 26, 2026, 9:34am UTC](https://talk.remobjects.com/t/forcing-a-field-to-update-for-delta-updates/33433 "2026-05-26T09:34:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fvancrae](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/f/ad7895/32.png) [@fvancrae](https://talk.remobjects.com/u/fvancrae)
#### Post date: [May 26, 2026, 9:34am UTC](https://talk.remobjects.com/t/forcing-a-field-to-update-for-delta-updates/33433/1 "2026-05-26T09:34:27Z")

</div>

I am using a RO DataTable to view and edit a DB table

At the same time however I perform DB stored procedures which modify the some if the same fields.

I am now running into an issue that my ApplyUpdates does not update a particular field because I use DA delta changes which does not update because it does not know about the change.

This is what happens chronologically:

1. DataTable gets loaded in TDADataTable
2. Some stored procedure changes field ‘myfield’ from ‘origval’ to ‘newval’
3. In DA DataTable we perform other tasks and set ‘myfield’ to ‘origval’
4. We call DataTable.ApplyUpdates()

The SQL update statement will not contain ‘myfield’ because the DataTable believes it is not modified

I would like to set this ‘myfield’ to ‘dirty/modified’ manually.

Is this possible?

Can I just change the value twice? Is this a future proof solution?

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [May 26, 2026, 10:03am UTC](https://talk.remobjects.com/t/forcing-a-field-to-update-for-delta-updates/33433/2 "2026-05-26T10:03:30Z")

</div>

Hi,

I can suggest:

- call [table.RefreshRow](https://docs.dataabstract.com/API/Delphi/Classes/TDAMemDataTable/#RefreshRow) before editing. it will actualize data with server-side.
- don’t use [Reduced Delta](https://docs.dataabstract.com/Concepts/Deltas/ReducedDelta/) feature
- use [BusinessProcessor.UserUpdateFields](https://docs.dataabstract.com/API/Delphi/Classes/TDABusinessProcessor/#UserUpdateFields) for adding extra fields used at generation of update/delete sql.  
**Note:** you should have personal BP or update autogenerated BP via [DataService event](https://docs.dataabstract.com/API/Delphi/Classes/TDataAbstractService/#OnBusinessProcessorAutoCreated) for setting `UpdateMode` & `UserUpdateFields` properties.

---

<div class="post-metadata">

### Author: ![fvancrae](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/f/ad7895/32.png) [@fvancrae](https://talk.remobjects.com/u/fvancrae)
#### Post date: [May 26, 2026, 10:54am UTC](https://talk.remobjects.com/t/forcing-a-field-to-update-for-delta-updates/33433/3 "2026-05-26T10:54:35Z")

</div>

OK, thanks,

These are all quite laboursome however.

After my post I found this issue in talk so I went with this approach

> [@Force the update of a field in reduced delta mode](https://talk.remobjects.com/t/force-the-update-of-a-field-in-reduced-delta-mode/24074):
>
> hi Evgeny, i’m using the code below to always make sure a field gets updated regardless of the fact if this field is changed or not, cause i want it to reflect the state in which the record exist when persisting procedure datable.forcestateforprimkey(const pk:integer) for I := 0 to Self.Delta.Count-1 do begin if Self.Delta.Changes[I].ChangeType = ctUpdate then begin if (Self.Delta.Changes[I].OldValueByName[fld\_\_primkey] = pk) AND (Self.Delta.Changes[I].OldValueByName…

I assume this is also future proof
