TAureliusModelEvents.OnUpdating Event

Hi,

In this event I am setting an item as follows:

Args.NewColumnValues.Items['xxx']:='Something';
Args.RecalculateState:=True;

But this remains unchanged in the database. I have debugged it and the value in Args is correct.

Am I missing something?

Thanks,

Ken

I should have added that this was working correctly a few versions ago.

You should not set NewColumnValues directly, but instead, set the entity object properties.

That's what RecalculateState for. It should be something like this:

TMyEntity(Args.Entity).xxx := 'Something';
Args.RecalculateState := True;
1 Like

Doh. Thanks Wagner

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.