I have a problem with TDBAdvEdit that only happens in one situation - pasting text copied from another row in the same query into a newly inserted row.
The TDBAdvEdit control is bound to a TFDQuery with CachedUpdates=True
It seems that when I paste into the TDBAdvEdit, procedure TDBAdvEdit.Change
isn't run & thus FDataLink.FModified
remains = False
This is how I make the problem happen:
insert a new row
navigate to another row
copy data from a TDBAdvEdit
navigate back to new row
paste copied data into a TDBAdvEdit
In all other situations I tried TDBAdvEdit.Change
does get run when I paste into the control.
The problem becomes apparent when I call post on the underlying TFDQuery & the TDBAdvEdit loses it's value.
procedure TDBAdvEdit.CMExit
calls procedure TFieldDataLink.UpdateData
which does nothing because FModified = False
I can see the problem happening by putting a breakpoint inside CMExit
and chaning focus away from the control.
Is this a bug or a problem unique to my project?