I've a Dataset for List-Property of another Entity.
This Dataset got calculated and lookup fields.
A new record is added to the dataset. State is dsInsert, as expected.
Changing my lookupfield triggers some changes on the Entity behind the dataset.
For this I implemented Dataset.RefreshRecord, so that all changes will be loaded to the Dataset.
This works fine except the lookup and calculated fields.
Both stay Empty at all.
creating a own dependent of TAureliusDataset that reintroduces RefreshRecord and putting this code in it, everything works fine:
begin
inherited;
CalculateFields(ActiveBuffer);
end;
Looks like FillRecord does not trigger the necessary events for refreshing calculated and lookup-fields.